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





