Heading elements appear in a sequentially-descending order

Page headings follow a logical order without skipping levels.

On this page

Impact

ScanGov impact ratings

About

Properly ordered headings that do not skip levels convey the semantic structure of the page, making it easier to navigate and understand when using assistive technologies.

Risks

Keyboard users cannot efficiently navigate your site.

Why it's important

Allows keyboard-only users and screen reader users to efficiently move through and interact with page content.

User stories

As a keyboard-only user, I want to efficiently navigate through page content without getting stuck or lost.

Code

Failing pattern:

<!-- Fail: heading level skipped -->
<h1>Agency name</h1>
<h3>Services</h3>

Passing pattern:

<!-- Pass: sequential heading levels -->
<h1>Agency name</h1>
<h2>Services</h2>
<h3>Benefits</h3>

Error

ScanGov messaging when a site fails a standard:

Failed: Heading elements appear in a sequentially-descending order

Examples

Failing pattern:

<h1>Agency name</h1>
<h3>Benefits</h3>  <!-- skips h2 -->

Passing pattern:

<h1>Agency name</h1>
<h2>Services</h2>
<h3>Benefits</h3>

Guidance

Indicators

On this page