Page should contain a level-one heading
How to fix the page-has-heading-one accessibility rule. Headings and landmarks. A best practice, not a WCAG requirement.
The message you saw
Lighthouse has no audit for this rule, so you’ll only see it from axe-core based tools.
What it means
The page has no <h1>. The level-one heading is the title of the page’s own content, normally the first thing in the main area: “Contact us”, the product name, the article headline.
The check passes if there is at least one <h1> (or an element with role="heading" and aria-level="1") that screen readers can reach. A heading hidden with display: none or aria-hidden="true" doesn’t count. The check is skipped while a modal dialog is open.
Who is affected
The page has no level-one heading, so screen-reader users can't jump straight to the start of the main content or hear what the page is about.
Screen-reader users often press a key to jump to the first <h1> to skip the header and menu and start reading the content. With no <h1>, that shortcut finds nothing, and they have to search for where the content begins.
This is a best practice, not a WCAG requirement. It is cheap to fix and also helps search engines understand the page.
How to find it
- Run the checker: this rule is reported for the whole page, not for one element.
- In Chrome DevTools, search the Elements panel for
<h1. If nothing is found, or it’s inside something hidden, the page has no usable<h1>. - Look at what visually acts as the page title: often a
<div>or<p>with a big font, or an<h2>.
How to fix it
- Find the text that names this page’s content (not the site name in the header, which is the same on every page).
- Make it an
<h1>. Keep its current class so it looks the same. - If the design has no visible title, add an
<h1>anyway and, if you really can’t show it, hide it visually with a “visually hidden” class (notdisplay: none). - Keep the other headings below it at level 2 and down.
Example
Before
<main>
<div class="page-title">Pricing</div>
<h2>Monthly</h2>After
<main>
<h1 class="page-title">Pricing</h1>
<h2>Monthly</h2>Common mistakes
- Making the logo the
<h1>on every page technically passes, but then every page has the same main heading. The<h1>should describe this page. - More than one
<h1>doesn’t fail this rule, but one per page is the clearest outline.
WCAG success criteria
None. This is a best practice: fixing it helps people using assistive technology, but it doesn’t affect WCAG conformance. Our scanner only reports it if you tick “Also show best-practice suggestions”.
Check your fix
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools. Scan again after your change: when the rule no longer appears under the problems, the fix worked.
An automated pass means this rule found nothing wrong. It doesn’t prove the page is accessible: some of what WCAG asks for needs a person to check, and the report’s manual checklist lists those steps.
Related fix guides
- Heading elements are not in a sequentially-descending order
- Heading elements do not contain content
- Document does not have a main landmark
More detail
- Deque University’s reference for page-has-heading-one (the makers of axe-core, the engine our scanner uses)
- All fix guides