Skip to content

Estructura básica de un documento HTML

  • Comprender la estructura jerárquica de un documento HTML.
  • Aplicar etiquetas semánticas adecuadas (header, main, article, footer).
  • Validar un archivo HTML según las normas del W3C.

Un documento HTML se compone de tres secciones principales:

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mi primera página</title>
</head>
<body>
<header>
<h1>Bienvenido a mi sitio</h1>
</header>
<main>
<p>Este es el contenido principal.</p>
</main>
<footer>
<small>© 2025 Mi Sitio Web</small>
</footer>
</body>
</html>