Rule
Leading page heading
Every page should start its outline with an <h1>.
- Rule
page-heading-one- Type
- Best practice, not a WCAG requirement. It runs when Best practices is switched on.
- Severity
- Moderate
What it checks
The rule passes when the page has at least one level 1 heading, and fails when it has none. A heading's level is its aria-level when set, otherwise the digit in its tag, so <h2 aria-level="1"> counts and <h1 aria-level="2"> does not. Headings inside open shadow roots count.
A level 1 heading tells a screen reader user what the page is about and where the main content begins. Many people jump to it first.
Example
Fails
<main>
<h2>Opening hours</h2>
<p>Open daily from nine until five.</p>
</main>
Passes
<main>
<h1>Opening hours</h1>
<p>Open daily from nine until five.</p>
</main>
The engine is tested against both examples.
How to fix it
Add one <h1> at the start of the main content that names the page.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.