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 and PageSpeed Insights
Heading elements are not in a sequentially-descending order
axe-core, axe DevTools and this checker
Heading levels should only increase by one (rule heading-order)

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

  1. Run the checker: the report outlines each heading that jumps too far and names the heading before it.
  2. Or use a browser extension or bookmarklet that lists headings, and look for a jump such as h2 → h4.
  3. In Chrome DevTools, search the Elements panel (Ctrl+F or Cmd+F) for h4, h5 and h6, and check which heading comes before each one.
  4. 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

  1. Write down the page outline: one <h1> for the page, <h2> for each main section, <h3> for parts of a section.
  2. Change each heading that skips a level to the next level down from the heading before it.
  3. If the heading now looks too big, change its look with CSS (a class such as .small-heading), not its level.
  4. 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.
  5. 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

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

More detail