

- Hyper Text Markup Language (HTML)
- Describe la estructura de la página
- Los elementos están representados por etiquetas
NO ES UN LENGUAJE DE PROGRAMACIÓN!!!
:V

Estructura Básica
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
</html>
<! DOCTYPE>
- Indica la versión de HTML
- No es una etiqueta HTML
- Ayuda a los navegadores web a mostrar correctamente la página
HTML 5
<!DOCTYPE html>
HTML 4.01 Strict
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 Transitional
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01 Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html></html>
- Indica al navegador que es un documento HTML
- Representa el root del documento HTML
- Contenedor de todos los elementos HTML
<!DOCTYPE html>
<html>
</html>
<head></head>
- Contenedor para todos los elementos head
<!DOCTYPE html>
<html lang="es">
<head>
<title>Titulo página</title>
<style>
body{
background: red;
}
</style>
<link rel="stylesheet" href="estilos.css">
<meta charset="UTF-8"> <!-- añadir informacion sobre la página -->
<meta http-equiv="Refresh" content="30"> <!-- Refrescar página cada 30 seg -->
<script src="funciones.js"></script>
</head>
</html>
<body></body>
- Define el cuerpo del documento
- Contenedor para todos los contenidos del HTML
<!DOCTYPE html>
<html lang="es">
<head>
<title>Titulo página</title>
<style>
body{
background: red;
}
</style>
<link rel="stylesheet" href="estilos.css">
<meta charset="UTF-8"> <!-- añadir informacion sobre la página -->
<meta http-equiv="Refresh" content="30"> <!-- Refrescar página cada 30 seg -->
<script src="funciones.js"></script>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Fusce enim ligula, imperdiet at tempus a, convallis
nec elit. Pellentesque aliquam sit amet purus eget eleifend.</p>
</body>
</html>HTML
By Jesús Glez
HTML
- 292