Banner landmark should not be nested within another landmark

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

Banner landmark should not be nested within another landmark.

The banner landmark should be a top-level landmark, not nested inside article, aside, main, nav, or section. If a header is inside these elements, it automatically becomes a generic header rather than a banner. Remove explicit role='banner' from nested headers or restructure the page.

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

Introduced in @accesslint/core v0.8.0