Heading Hierarchy Validator
Validate the heading hierarchy (H1 to H6) of a page and find out if it skips levels. Improve the accessibility, structure and SEO of your HTML content.
Resultado
—
Skipping from H2 to H4 hurts
Screen reader users move through headings the way sighted readers skim a page: press H, next heading, next. When a document jumps from H2 straight to H4, they cannot tell whether a section went missing along the way. Audits report this as heading-order, and the cause is usually the same: someone picked the level by how big the text looked instead of where it sits in the structure.
One thing to know before you start: this does not take HTML. You type the sequence of levels in the order they appear, something like 1,2,2,3,4,2,3, and the check runs over those numbers. It flags three situations: jumping down by more than one level, having no H1 at all, and having more than one H1. Climbing back up several levels at once, H4 to H2 for a new section, is normal and is not flagged.
To collect the sequence, the quick route is the console: run document.querySelectorAll('h1,h2,h3,h4,h5,h6') and read the tags in order. Two caveats. Numbers outside the 1 to 6 range are dropped silently, so a stray 7 vanishes from the check instead of raising an error. And the single H1 rule is settled best practice, not a formal WCAG requirement, so a page with an H1 in the banner and another in the content deserves a judgement call.
Frequently asked questions
Does skipping from H2 to H4 fail WCAG?
Can a page have more than one H1?
Can I paste my HTML in here?
Related Tools
hreflang vs lang Consistency Checker
Compares the html lang attribute with the main link hreflang value and flags an exact match, the same base language with a different region, or a mismatch.
Alt Text Length Checker
Check the length of your image alt text against the recommended ~125-character limit. Improve the accessibility and SEO of your website.
Hex Color Validator
Validate hex colors in #RGB, #RGBA, #RRGGBB or #RRGGBBAA format and convert between them. Everything in your browser.
Tracking Code Validator
Validate the format of Brazilian Correios tracking codes (AA123456789BR). Identifies the service prefix and the country.
IMDb ID Validator
Validate the format of an IMDb ID (tt followed by 7 or more digits, e.g. tt0111161). Useful for developers working with movie and TV APIs in their projects.
ABA Routing Number Validator
Validate a 9-digit ABA Routing Number used by US banks by checking the official checksum. Useful for transfers, checks and payments in the United States.