Listo (Ctrl + Enter para ejecutar) Bootcamp Fullstack »
index.html
Tab = 4 espacios
1
<!DOCTYPE html>
<html lang="es">
<head>
  <meta charset="UTF-8">
  <title>Maquetación Semántica HTML5</title>
  <style>
    body { font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 20px; background: #f1f5f9; }
    header, nav, main, aside, footer { border-radius: 8px; padding: 15px; margin-bottom: 12px; }
    header { background: #0f172a; color: white; }
    nav { background: #1e293b; display: flex; gap: 15px; }
    nav a { color: #38bdf8; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
    nav a:hover { text-decoration: underline; }
    .layout-grid { display: flex; gap: 15px; }
    main { flex: 3; background: white; border: 1px solid #cbd5e1; }
    article { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 15px; margin-top: 10px; }
    aside { flex: 1; background: #e0f2fe; border: 1px solid #bae6fd; }
    footer { background: #334155; color: white; text-align: center; font-size: 0.85rem; }
  </style>
</head>
<body>

  <!-- Cabecera del Sitio -->
  <header>
    <h2 style="margin: 0;">Kilopolis Academia</h2>
    <small>Campus Virtual de Desarrollo Web y Software</small>
  </header>

  <!-- Navegación Principal -->
  <nav>
    <a href="#cursos">Cursos</a>
    <a href="#manuales">Manuales</a>
    <a href="#sandbox">Sandbox</a>
    <a href="#soporte">Soporte</a>
  </nav>

  <!-- Contenido Central y Barra Lateral -->
  <div class="layout-grid">
    <main>
      <h3 style="margin-top: 0; color: #0f172a;">Área Principal (&lt;main&gt;)</h3>
      
      <article>
        <h4 style="margin-top: 0; color: #0284c7;">Artículo Semántico (&lt;article&gt;)</h4>
        <p>
          Los elementos semánticos permiten que Google y los lectores de pantalla entiendan de inmediato qué parte es el menú, qué parte es el contenido relevante y qué parte es la barra lateral.
        </p>
      </article>
    </main>

    <aside>
      <h4 style="margin-top: 0; color: #0369a1;">Barra Lateral (&lt;aside&gt;)</h4>
      <p style="font-size: 0.9rem;">
        💡 <strong>Dato clave:</strong> Usa <code>&lt;article&gt;</code> cuando el contenido tenga sentido por sí solo si se publicara en un lector de RSS.
      </p>
    </aside>
  </div>

  <!-- Pie de Página -->
  <footer>
    &copy; 2026 Kilopolis Academia · Construido con HTML5 Semántico Estándar.
  </footer>

</body>
</html>
Haz clic para editar este código
Vista Previa
Navegador / HTML5