Ejercicio 7: Crear una maqueta de footer con html y css
Crea una maqueta de footer con HTML y CSS a partir de la siguiente imagen:
Solución interactiva
Solución con el código HTML y CSS completo
HTML
<!DOCTYPE html>
<html lang="es">
  <head>
    <meta charset="UTF-8" />
    <title>Ejercicio 2</title>
    <style>
      /* Escribe tu CSS aquí */
      body {
        margin: 0; /* Quita el margen por defecto */
        font-family: sans-serif;
      }
      .container {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 32px;
        background: #e1d9ff;
        min-width: fit-content;
      }
      footer {
        text-align: center;
        padding: 20px;
        background: #575261;
      }
      footer .footer_nav {
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 20px;
      }
      footer .footer_nav ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 0; /*Quitamos el margen por defecto*/
        padding: 0 16px;
      }
      footer .footer_nav ul li a {
        display: block;
        text-decoration: none;
        font-size: 16px;
        color: #fff; /*Utilizamos tres valores ya que es similar a utilizar #ffffff*/
        font-weight: 600;
        padding: 12px;
        transition: 0.3s; /*Esto produce un efecto suave cuando pasas el cursor por sobre el enlace*/
      }
      footer .footer_nav ul li a:hover {
        background: #6a6376;
      }
      footer span {
        font-size: 15px;
        font-weight: 700;
        color: #fff;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <footer>
        <nav class="footer_nav">
          <ul>
            <li><a href="" title="Link description">Facebook</a></li>
            <li><a href="" title="Link description">Instagram</a></li>
            <li><a href="" title="Link description">Linkedin</a></li>
          </ul>
        </nav>
        <span>© Copyright - 2025</span>
      </footer>
    </div>
  </body>
</html>
info
🔎 Revisa las siguientes secciones donde econtrarás más información sobre este tema: