GUIDE 3 OF 11 · WEBSITE HEALTH CHECK
One h1, heading order and the main landmark
Three checks look at the outline of a page. It should have exactly one h1, the headings under it should go down one level at a time (h2, then h3, never h2 then h4), and the page's own content should sit inside one main element. A missing h1 fails; the other two only warn.
AT A GLANCE
- h1: none fails, exactly one passes, two or more is a warning.
- Heading order: a warning for every place where a heading is more than one level deeper than the one before it (h2 then h4). Going back up (h4 then h2) is fine.
- Main landmark: a warning if the page has no
<main>element and norole="main". - A page with no headings skips the order check.
| Check | Group | Points |
|---|---|---|
One main heading (h1) seo-h1 | Search | 3 |
Heading order a11y-headings | Accessibility | 2 |
Main landmark a11y-landmarks | Accessibility | 1 |
What the three checks look at
| Check | Fail | Warning | Pass |
|---|---|---|---|
One main heading (seo-h1) | No <h1> at all | Two or more <h1> elements (the first five are listed) | Exactly one |
Heading order (a11y-headings) | Never fails | Any heading more than one level below the previous one, for example h2 then h4 | Every step down is one level |
Main landmark (a11y-landmarks) | Never fails | No <main> and no role="main" | One of them exists |
The order check reads every heading from h1 to h6 in the order they appear in the HTML. The first heading can be any level. After that, only a step of more than one level down counts as a jump: h2 then h3 is fine, h3 then h2 is fine, h2 then h4 is flagged.
One h1
The h1 is the name of the page. It does not have to be the same as the title tag, but it should say the same thing in plain words. A page with several h1 elements still loads and works, but the checker warns, because a page with one clear main heading is easier to scan and to move through with a screen reader.
In an app built from components the usual cause of two h1 elements is a banner component and a page component that each render one. Decide which one names the page and change the other to an h2.
<main>
<h1>Title tag and meta description length</h1>
<h2>What the two checks count</h2>
<h2>How to fix a title</h2>
<h3>In plain HTML</h3>
<h3>In Next.js</h3>
<h2>What the check cannot see</h2>
</main>Heading order
People who use a screen reader often move through a page by its headings, the way a sighted reader looks at the bold lines. When the level jumps from h2 to h4 it sounds as if a section is missing. The fix is almost never to move text around: choose the level that matches the outline, and use CSS for the size.
Size is CSS, level is meaning
If a design needs a small heading in the middle of a section, use an h3 and style it small. Using an h5 because it looks right is what causes most jumps.
The main landmark
A <main> element marks the content that belongs to this page, as opposed to the navigation, header and footer around it. Keyboard and screen reader users can jump straight to it. Use one per page and keep the navigation outside it.
<body>
<header>...site name and navigation...</header>
<main>
<h1>The page's own content starts here</h1>
</main>
<footer>...</footer>
</body>What these checks cannot see
A heading that is hidden with CSS still counts, because the checker reads the HTML and not the screen. Headings added later by JavaScript are not seen. The landmark check only asks whether a main element exists: it does not notice two of them, which is invalid. And none of them judge whether the heading text is any good.
Questions people ask
Can a page have more than one h1?
It will still work, but this checker warns on two or more. One clear main heading is the safest choice for search engines and screen readers. If you need more top-level headings, make the others h2.
Does the h1 have to match the title tag?
No. The title is the headline in search results and browser tabs, and the h1 is the headline on the page. They should say the same thing, but they do not need the same words. Limits for the title are in the guide on title tag and meta description length.
Is skipping a heading level really a problem?
The main reason to avoid it is people who move through a page by its headings with a screen reader: a jump looks like a missing section. It is a warning in this checker, never a failure.
Where the facts come from
See also on this site
FREE · ABOUT TEN SECONDS · NOTHING STORED
Check your own site
Paste a web address into the free website health check. It runs the 36 checks these guides explain, gives a score out of 100, and says what to fix first.
Open the free website health check