← All analysers · Structural HTML analysers

StructuralHTMLAnalyzer

Document structure: headings hierarchy, landmark coverage, list nesting.

What it detects

Structural rules that don't need behaviour or styling to evaluate. Headings should descend without skipping levels. The page should have a `<main>`. Lists should contain `<li>` and not arbitrary content. This analyser runs over the DOMModel and reports structural violations.

WCAG criteria

  • 1.3.1 — Info and Relationships
  • 2.4.6 — Headings and Labels
  • 2.4.1 — Bypass Blocks

Source

analyzers/StructuralHTMLAnalyzer.ts

More