Heading elements are not in a sequentially-descending order
How to fix the heading-order accessibility rule. Headings and landmarks. A best practice, not a WCAG requirement.
The message you saw
Lighthouse runs axe-core inside it, so both are the same check, and the fix below works whichever tool showed you the message.
What it means
Headings <h1> to <h6> work like the outline of a document: an <h2> starts a section, an <h3> starts a sub-section inside it, and so on. This message means that somewhere on the page a heading goes down more than one level at once, for example an <h2> followed directly by an <h4>, with no <h3> in between.
The check compares each heading with the one just before it. Going down one level is fine, going back up any number of levels is fine (an <h4> followed by an <h2> starts a new section), and the first heading on the page can be any level. Only a jump downwards of two or more levels is flagged.
It usually happens because a level was picked for its size: the designer wanted smaller text, so someone used an <h4> or <h5>.
Who is affected
A heading skips one or more levels (an <h2> followed by an <h4>), so screen-reader users who move through the page by headings think they missed a section.
Many screen-reader users read a page by listing or jumping between its headings, and use the levels to understand which parts belong together. A skipped level makes them think a section is missing or that they jumped past something.
This is a best practice, not a WCAG failure on its own: WCAG doesn’t require levels to be consecutive. But headings that don’t reflect the real structure can fail 1.3.1 Info and Relationships, and a tidy outline is the simplest way to stay clear of that.
How to find it
- Run the checker: the report outlines each heading that jumps too far and names the heading before it.
- Or use a browser extension or bookmarklet that lists headings, and look for a jump such as h2 → h4.
- In Chrome DevTools, search the Elements panel (Ctrl+F or Cmd+F) for
h4,h5andh6, and check which heading comes before each one. - Remember headings in shared parts of the page, like a footer or a sidebar widget, which often use
<h4>or<h5>for their small text.
How to fix it
- Write down the page outline: one
<h1>for the page,<h2>for each main section,<h3>for parts of a section. - Change each heading that skips a level to the next level down from the heading before it.
- If the heading now looks too big, change its look with CSS (a class such as
.small-heading), not its level. - If the text isn’t really a heading (a tagline, a price, a card’s label), make it a
<p>or<span>with a class instead. - Scan the page again.
Examples
A skipped level
Before
<h2>Our services</h2>
<h4>Web design</h4>
<h4>Hosting</h4>After
<h2>Our services</h2>
<h3>Web design</h3>
<h3>Hosting</h3>Keeping the small look
Before
<h5 class="footer-title">Follow us</h5>After
<h2 class="footer-title">Follow us</h2>
/* CSS */
.footer-title { font-size: 1rem; }Common mistakes
- Don’t fix the order by turning headings into bold paragraphs. Headings are how screen-reader users move around; removing them makes the page harder to use, not easier.
- Headings inside content loaded later (a cookie banner, a chat widget, a modal) count too, in the order they appear in the page’s code.
role="heading"withoutaria-levelcounts as level 2.
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
- Page should contain a level-one heading
- Heading elements do not contain content
- The page does not contain a heading, skip link, or landmark region
More detail
- Deque University’s reference for heading-order (the makers of axe-core, the engine our scanner uses)
- All fix guides