liveBook · Manning

Heading

As explained in Architecting Accessibility

A heading is a structural text element that identifies and organizes a section of web content.

Headings organize web content and help people scan a page or navigate it by structure. Use native HTML heading elements, <h1> through <h6>; styling a <div> or <span> to look like a heading does not give it heading semantics. section 5.1 section 5.1.3

Choose heading levels to reflect the content hierarchy:

  • Use <h1> for the primary topic; use lower levels for sections and their subsections. section 5.1.3
  • Move through levels sequentially where possible. Skipping a level is not automatically a WCAG failure, but it can make the structure harder to understand. section 5.1.3
  • Semantic headings enter the accessibility tree, allowing screen readers to announce heading levels and navigate by heading. 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 example shows a page title followed by sections and nested subsections using a logical heading hierarchy. section 5.1.3

How Architecting Accessibility covers it

How deep it goes
Defines semantic h1–h6 hierarchy, explains accessibility-tree and screen-reader navigation, and warns against skipped levels.
Examples
Uses nested page, section, and subsection headings, contrasting sequential levels with a skipped-level hierarchy.
What you can do after
Apply HTML heading elements in a logical hierarchy, using levels for content structure rather than visual size.
How it connects
Connects semantic HTML headings with screen readers, the accessibility tree, browser reading modes, and search engine indexing.

Also explained in

Compare how 6 books explain heading →

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.