HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mi Tiendita</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Mi Tiendita</h1>
<nav>
<a href="#">Inicio</a>
<a href="#">Productos</a>
<a href="#">Contacto</a>
</nav>
</header>
<main>
<section class="productos">
<div class="producto">
<img src="producto1.jpg" alt="Producto 1">
<h2>Producto 1</h2>
<p>$20.00</p>
<button>Comprar</button>
</div>
<div class="producto">
<img src="producto2.jpg" alt="Producto 2">
<h2>Producto 2</h2>
<p>$25.00</p>
<button>Comprar</button>
</div>
</section>
</main>
<footer>
<p>© 2025 Mi Tiendita | Contacto: contacto@mitiendita.com</p>
</footer>
</body>
</html>
CSS
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f8f8f8;
text-align: center;
}
header {
background-color: #ff6f61;
padding: 15px;
color: white;
}
nav a {
margin: 0 15px;
color: white;
text-decoration: none;
}
.productos {
display: flex;
justify-content: center;
gap: 20px;
margin: 20px;
}
.producto {
background: white;
padding: 15px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.producto img {
width: 100px;
height: auto;
}
button {
background-color: #ff6f61;
color: white;
border: none;
padding: 10px;
cursor: pointer;
}