Fixing heading structure: ordering levels and setting the H1
Skipped heading levels and a missing H1: what heading-order and page-has-heading-one mean and how to structure headings in HTML and WordPress.
In short
The axe messages “Heading levels should only increase by one” (heading-order) and “Page should contain a level-one heading” (page-has-heading-one) point to gaps in the structure: heading levels are skipped, or the page has no main heading. axe classifies both rules as best practice, not as a WCAG failure in their own right. You should still take them seriously, because many screen reader users find their way around pages by headings. Choose the level by the meaning of the section and control the size with CSS.
What the rules check
heading-order reports when the level increases by more than one, for example when an <h2> is followed directly by an <h4>. Jumping back from <h4> to <h2> at the start of a new section is fine. page-has-heading-one reports pages without an <h1> or an element with role="heading" and aria-level="1". The related rule empty-heading reports headings without text.
WCAG does not literally require an unbroken sequence. Success criterion 1.3.1, however, requires the visible structure to be present in the code as well, and 2.4.6 requires descriptive headings. The WAI headings tutorial says that skipping heading ranks can be confusing and should be avoided where possible.
Why structure matters to people
Screen readers offer a list of all headings and keys to jump from one to the next, such as the H key in NVDA’s browse mode or the rotor in VoiceOver. The headings then work like a table of contents. If the level jumps from 2 to 4, people suspect a missing section. If the H1 is missing, there is no entry point to the main content.
Section titles that only look like headings are even worse, for example a bold paragraph. They are completely missing from the list of headings, and no automated test finds them reliably. A clear structure also helps everyone who skims a page.
Typical causes
- Level chosen for looks: an <h4> was used because it looks smaller, not because it fits the structure.
- Widget titles: sidebar and footer headings as <h4> or <h5> appear in the code before or between the sections of the main content.
- Site name as H1: the theme makes the logo the <h1> on every page, and the actual page title becomes an <h2>.
- Hidden title: the page title was switched off in the theme, and the content starts straight with an <h2>.
- Empty modules: page builder elements with a heading tag but no text, or only an icon.
Building a clean structure
- List all headings, using your screen reader’s headings list, a browser extension or the console with [...document.querySelectorAll('h1,h2,h3,h4,h5,h6')].map(h => h.tagName + ' ' + h.textContent.trim()).
- Read the list like a table of contents: does the H1 name the main content, and do the H2s form the main sections?
- Correct the levels by meaning and adjust the appearance with CSS, for example <h2 class="small"> instead of an <h4>.
- Turn visual section titles into real headings, and turn promotional lines such as “Call us now!” that do not introduce a section into paragraphs.
- Fix recurring areas such as the header, sidebar and footer in the template so that the change applies to all pages.
One H1 or several?
HTML does not forbid several <h1> elements. The outline algorithm that was once described, under which an <h1> inside <section> automatically became a subheading, was never implemented by browsers or screen readers and is no longer part of the HTML specification. For assistive technologies, an <h1> therefore always remains level 1.
A single H1 per page that names the main content, usually matching the page title, has proven its worth. On subpages, the site name belongs in the header but not in the H1.
Implementing it in WordPress and page builders
In the Heading block, you choose the level in the toolbar. As the theme usually outputs the post title as the H1, headings in the content start at H2. In block themes, the level of the Site Title block can be configured so that the site name no longer produces an H1 on subpages.
Many page builders separate the HTML tag of a heading element from its appearance. Make use of that: level by structure, size by design. In classic themes, widget headings are defined by the theme; an adjustment in a child theme or a report to the vendor helps here.
Checking the fix
Run the website check again, for every template: the home page, posts, category pages, product pages and the contact page often have different structures. Then open your screen reader’s list of headings and check whether you can understand the page and reach every important section using that list alone.
Sources & review status
Here you’ll find the original sources for this article. Last checked on .
- W3C WAI: Headings and page structure
- W3C: Understanding Info and Relationships (1.3.1)
- W3C: Understanding Headings and Labels (2.4.6)
- Deque: axe rule heading-order
- Deque: axe rule page-has-heading-one
- WordPress: Heading block
Legal requirements depend on the country, the provider and the specific offer. This article explains the basics and practical steps. Test results apply to their documented scope and date.