← 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.1Info and Relationships
  • 2.4.6Headings and Labels
  • 2.4.1Bypass Blocks

Source

analyzers/StructuralHTMLAnalyzer.ts

More