liveBook · Manning

Heading level

As explained in Architecting Accessibility

The structural rank of an HTML heading, from level 1 through level 6.

For someone navigating by screen reader, a heading’s level helps reveal how page content is organized. Use native HTML headings, <h1> through <h6>, to express that structure; styling a <div> or <span> to look like a heading does not give it heading semantics. section 5.1.3

Use <h1> for the primary topic and lower levels for nested content. Keep levels in a logical sequence: for example, place an <h3> between an <h2> and an <h4>. Reuse a level for sections at the same rank; choose heading levels for hierarchy, not visual size. 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 outline shows sections and subsections using heading levels that reflect their hierarchy. section 5.1.3

How Architecting Accessibility covers it

How deep it goes
Defines levels, explains logical nesting, and advises against skipping levels or using headings for visual size.
Examples
Shows a page title followed by sections, subsections, and a nested subsection.
What you can do after
Build semantic page outlines with HTML headings that reflect content hierarchy.
How it connects
Connects semantic HTML headings with screen readers, the accessibility tree, and WCAG information relationships.

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.