TOC

This article is currently in the process of being translated into Spanish (~99% done).

HTML Basics:

Headings

Los encabezados son definidos con los elementos <h1> al <h6>, siendo <h1> el más importante encabezado de la página.

Debajo hay algunos ejemplos de diferentes encabezados

<h1>This is a H1-heading</h1>
<h3>This is a H3-heading</h3>
<h6>This is a H6-heading</h6>

Los encabezados son importantes ya que los navegadores web interpretan los encabezados como la estructura de tu página. Por lo tanto, los encabezados solo deberían usarse para reales encabezados (títulos, o temas principales) y no para hacer el texto en negritas o grande. Además de estructurar tu página, los encabezados también incrementan la legibilidad de tus páginas - tus usuarios probablemente usen los encabezados como navegación.

Abajo es un ejemplo de como se puede usar los diferentes encabezados. Los encabezados son usados para para delinear la página - el siguiente HTML crearía esta estructura de página:

  1. Introducción
  2. Vuelve a encabezados de segundo nivel
  3. Ultimo encabezado de segundo nivel
<!DOCTYPE html>
<html>
<head>
	<title>Your first HTML5 Document</title>
</head>
<body>
	<h1>Introduction</h1>
		<p>Okay, now we’re going somewhere! This is the first paragraph of the page.</p>
	<h2>The less important heading</h2>
		<p>This is the second paragraph and it is right below a h2-heading</p>
	<h3>My 3rd level heading</h3>
		<p>Just another paragraph </p>
	<h2>Back to 2nd level headings</h2>
	<h2>The last 2nd level heading</h2>
</body>
</html>

This article has been fully translated into the following languages: Is your preferred language not on the list? Click here to help us translate this article into your language!
adplus-dvertising