An HTML heading names or briefly describes a section of content. Heading elements run from <h1>, the highest level, through <h6>, the lowest. Unlike the <title> element, a main heading appears on the page rather than only in the browser tab. section 2.14
Build a page outline by matching heading levels to the content hierarchy:
- <h1> usually identifies the page’s main heading. section 2.14
- <h2> introduces sections, while <h3> introduces subsections beneath them. section 2.14
- <h4> through <h6> provide progressively lower levels when the outline needs them. section 2.14
- Browsers display each heading as its own block, using bold text and progressively smaller default sizes. section 2.14
A six-level heading outline
<h1>Level 1 Heading</h1> <h2>Level 2 Heading</h2> <h3>Level 3 Heading</h3> <h4>Level 4 Heading</h4> <h5>Level 5 Heading</h5> <h6>Level 6 Heading</h6> section 2.14
<h1>Level 1 Heading</h1> <h2>Level 2 Heading</h2> <h3>Level 3 Heading</h3> <h4>Level 4 Heading</h4> <h5>Level 5 Heading</h5> <h6>Level 6 Heading</h6>
Preview the six heading elements and compare their hierarchy and browser-rendered sizes. section 2.14




