Heading levels should only increase by one

Headings should step down one level at a time, so an h2 is followed by an h3, not an h4. This is a best practice, not a WCAG requirement, and it keeps the page outline easy to follow.

Rule IDheading-order
ImpactModerate
Success criterion Best practice, not a WCAG requirement
Readabler fix Needs a change in the website’s code

Example

Before
<h1>Summer camping gear</h1>
<h2>Tents</h2>
<h4>Two-person tents</h4>
<p>Light enough for a weekend hike.</p>

A screen reader user jumping by heading hears level 2, then level 4, and wonders what was skipped.

After
<h1>Summer camping gear</h1>
<h2>Tents</h2>
<h3>Two-person tents</h3>
<p>Light enough for a weekend hike.</p>

The outline reads level 1, 2, 3: each section clearly sits inside the one above it.

Why it matters

Many screen reader users skim a page by its headings. They open a list of headings or press a key to jump from one to the next, and the level tells them how sections relate. When a level is skipped, the outline suggests that a section is missing, or that content belongs somewhere it does not.

People with cognitive or learning disabilities also rely on a clear, predictable structure, and browser extensions that build a table of contents from headings produce a broken outline.

A clean hierarchy also helps search engines understand which topics a page covers and how they are grouped.

How to fix it

Pick each heading level by its place in the structure, never by how big it looks. Style the size with CSS instead.

A level was skipped for its look. Use the correct level and restyle it:

<h3 class="subtitle-small">Two-person tents</h3>

A reusable component has a fixed level. Card titles, widgets and teasers often hard-code an <h4>. Make the level a setting of the component, so it renders an <h2> on one page and an <h3> on another.

Sidebar or footer headings. Treat them as sections of the page, usually <h2>, not as deep sub-levels of the article.

Going back up is fine: an <h4> may be followed directly by an <h2> when a new major section starts.

<h3>Sleeping bags</h3>
<h4>Down or synthetic?</h4>
<h2>Cooking gear</h2>

Checklist

  1. Choose heading levels by structure, not font size.
  2. Never go more than one level deeper than the previous heading.
  3. Make the heading level of reusable components configurable.
  4. Style headings with CSS classes instead of changing their level.

How the check works

The check collects every heading visible to assistive technology (<h1> to <h6> and role="heading" with aria-level), including headings inside frames, in page order. The first heading always passes. Each following heading fails when its level is more than one deeper than the heading before it. Going up any number of levels passes. Review manually whether the levels match the real structure.

Resources

Updated October 27, 2026