Landmark Regions
Checks for proper landmark regions (main, nav, footer)
Checks for proper landmark regions (main, nav, footer)
| Rule ID | a11y/landmark-regions |
| Category | Accessibility |
| Scope | Per-page |
| Severity | info |
| Weight | 3/10 |
Solution
Landmark regions help screen reader users navigate page structure. Use semantic HTML5 elements: <main> for primary content, <nav> for navigation, <header> for page header, <footer> for footer, <aside> for sidebars, and <section>/<article> for content sections. Alternatively, use ARIA roles: role=‘main’, role=‘navigation’, etc. Each page should have exactly one <main> element.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["a11y/landmark-regions"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/landmark-regions"]
disable = ["*"]