Main landmark should not be nested within another landmark

landmarks/main-is-top-level · Best practice

Main landmark should not be nested within another landmark.

Screen readers provide a shortcut to jump directly to the main landmark. When <main> is nested inside another landmark (article, aside, nav, or section), some screen readers may not list it as a top-level landmark, making it harder to find. Move <main> outside any sectioning elements so it sits at the top level of the document.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0