# Broken heading hierarchy

> Heading levels should not skip (e.g., going from h2 to h4). Broken hierarchy confuses screen readers and search crawlers.

Source: https://seocode.io/checks/heading-hierarchy

[All checks](https://seocode.io/checks) / Headings

Heading levels should not skip (e.g., going from h2 to h4).

Warning `heading-hierarchy`

In SEOCode's checks since 30 Apr 2026

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Read the docs](https://seocode.io/docs)

## Why this matters.

Heading levels should not skip (e.g., going from h2 to h4). Broken hierarchy confuses screen readers and search crawlers.

Runs on `.html` `.jsx` `.tsx` `.vue` `.svelte` · Warnings are reported on the pull request but do not block the merge.

## How to resolve it.

Fix heading structure: h2 jumps directly to h4. Insert the missing level between them.

**SEOCode writes this fix for you**

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.

## Where this comes from.

- [01 · Headingsw3.org](https://www.w3.org/WAI/tutorials/page-structure/headings/)

Using a framework? [Next.js](https://seocode.io/nextjs-seo) · [SvelteKit](https://seocode.io/sveltekit-seo) · [Nuxt](https://seocode.io/nuxt-seo)

## Related checks.

The h1 to h6 outline search engines and AI retrieval use to find the answer on a page.

- [01 · Missing <h1> tag Critical Every page must have exactly one <h1> tag.](https://seocode.io/checks/missing-h1)

- [02 · Multiple <h1> tags Critical Having multiple <h1> tags dilutes the primary topic signal.](https://seocode.io/checks/multiple-h1)

- [03 · Empty heading tag Warning Empty heading tags confuse crawlers and screen readers.](https://seocode.io/checks/empty-heading)

[All 4 headings checks](https://seocode.io/checks#headings)

## Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit?from=checks-cta)

Free for public repositories · no credit card
