liveBook · Manning

Heading hierarchy

As explained in Architecting Accessibility

A heading hierarchy is an ordered structure in which heading levels reflect the nesting of page sections and subsections.

Use semantic HTML headings to make page structure understandable to screen readers and other assistive technologies. Nest heading levels to match the content: lower levels introduce subsections, while repeated levels can begin separate sections. Avoid skipping levels; heading size is a styling choice, not a reason to change the hierarchy. section 5.1.3

<h1>Page Title</h1>
<h2>Section 1</h2>
<h3>Subsection 1.1</h3>
<h3>Subsection 1.2</h3>
<h4>Sub-subsection 1.2.1</h4>
<h2>Section 2</h2>
<h3>Subsection 2.1</h3>

This sequence shows a page title followed by sections and nested subsections, with heading levels reflecting their relationships. section 5.1.3

How Architecting Accessibility covers it

How deep it goes
Defines semantic heading levels and sequential nesting, and notes that skipping levels is discouraged but not automatically a WCAG failure.
Examples
Demonstrates a page title, sections, and nested subsections, and contrasts semantic headings with styled spans or divs.
What you can do after
Build it from scratch by using native HTML heading elements in a sequence that reflects the page’s content hierarchy.
How it connects
Connects semantic HTML headings to the accessibility tree, screen reader navigation, and WCAG 1.3.1.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.