Heading structure checker

Check the heading outline of a page or a crawl: missing or multiple H1, duplicates across URLs, skipped levels, headings before the first H1, and headings that sit in page chrome rather than in the content.

What it does

Outline in DOM order

The heading checks read the parsed document in order, with each heading's level, text and page region. That makes a skipped level or a stray heading in the navigation visible. A count of H1 elements alone would miss both.

  • Level, text and region for every heading
  • Skipped levels, such as H2 to H4
  • Headings before the first H1
  • Headings in the header, nav, sidebar or footer

H1 checks

A page should have one clear H1. The checks report pages with no H1, with several, with an H1 that holds only an image alt text, or with an H1 that is too long. Identical H1 text across URLs is flagged as a duplicate, and a missing H2 under an existing H1 is a notice.

  • No H1, multiple H1 and H1 duplicates across URLs
  • H1 made only of image alt text
  • Missing H2 on a page that has an H1

Fix the template once

Headings found in the header, navigation, sidebar or footer are grouped by their repeated text, with a page count. One template change then clears the finding on every page that shares it.

  • Grouped by repeated heading text
  • Page count per group
  • Region rules you can add for menus built from plain divs

Three steps, one saved scan

  1. Crawl the site or parse one page

    A crawl stores each page's heading outline in DOM order. parse returns the heading levels and the outline for a single URL.

  2. Read the order, not just the counts

    Each heading keeps its level, text and page region, so a skipped level or a stray heading in the menu is visible.

  3. Fix the template once

    Headings in the header, nav, sidebar or footer are grouped by the repeated text, with a page count, so one template fix covers every page.

Checks in this feature

CheckWhat it meansSeverityEvidence
H1_MISSINGThe page has no H1 headingImportantPage URL, with no H1 in the parsed document
H1_MULTIPLEThe page has more than one H1ImportantPage URL and the H1 texts that caused it
H1_DUPLICATEThe same H1 text appears on several URLs in one runTipThe H1 text and the URLs that share it
HEADING_BEFORE_H1One or more headings come before the first H1 in DOM orderTipCount, heading levels and the first heading texts before the H1
HEADING_SKIPA content heading jumps more than one level, for example H2 to H4TipFrom and to levels with the heading texts, in the content region only
HEADING_IN_PAGE_CHROMEA heading sits in the header, nav, sidebar or footer rather than the contentTipRegion, level and text, with the number of pages that share the same template headings
Also in the check registry
H1_TOO_LONGH1_ALT_TEXT_ONLYH2_MISSING

One command

bash
spiderhead parse --url https://example.com/

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • One URL for parse, to see the outline
  • A crawl-site scan for the outline checks
  • Optional link_position rules for custom menu markup

Limits

  • Outline checks need the DOM order, so they run on a native crawl, not on an external crawl export
  • Without a main content landmark or a matching rule, the region is unmeasured and the check is skipped for that page
  • The crawl-site default cap is 200 URLs
  • The checks report structure, not whether the headings read well

Questions

Does parse run the heading checks?
No. parse returns the heading levels and the outline for one page. The checks run in a crawl: crawl-site stores the outline and reports HEADING_BEFORE_H1, HEADING_IN_PAGE_CHROME and HEADING_SKIP. H1_MISSING, H1_MULTIPLE and H1_DUPLICATE also run in a crawl.
Why do some outline checks come back skipped?
HEADING_BEFORE_H1, HEADING_IN_PAGE_CHROME and HEADING_SKIP read the DOM order of the outline. A native crawl records it; an imported export holds headings only as an unordered set, so those three are skipped by name on imports.
Why was a heading in my menu not flagged, or flagged as chrome?
Regions come from the page's main content landmark: a main element, role=main, an article, or a selector you configure. Without one, and with no matching position rule, the region is unmeasured. The check is then skipped for that page and the run says why. It is not reported as clean. For menus built from plain divs, add rules under link_position.rules.
Does the checker change my site?
No. It makes read-only requests and respects robots.txt. The crawl-site default cap is 200 URLs, so you control the scope.
Is more than one H1 always an error?
It is reported as a warning in the registry, because one H1 states the page topic most clearly. It is not a rule that search engines enforce, so decide per template.

Try it on your own site