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
