Main landmark should not be contained in another landmark
What is the problem?
The "landmark-main-is-top-level" rule ensures that the main landmark, which typically contains the primary content of a page, is not nested within another landmark.
Impacted Groups
Why is this important?
Nesting landmarks can create a confusing document structure for screen reader users. This can make it difficult for them to understand the page layout and navigate to the content they need.
How to solve this issue
To fix this issue, make sure the main landmark is a direct child of the body element. Avoid nesting it within other landmarks like banner, complementary, or contentinfo. This will help screen reader users understand the page structure and access the main content easily.
Rule Information
Rule ID
landmark-main-is-top-level
Severity
Manual Review Required
Rule Group
Best Practices Rules
Guidelines
- Best Practice
Customise Guidance
You can customise each accessibility rule in SiteAlly with your own guidance, instructions and even links to your own organisation specific documentation.
Enable your website editors to resolve issues quickly with SiteAlly.
Ready to make your website accessible?
SiteAlly provides automated accessibility monitoring, detailed reports, and step-by-step guidance to help you achieve and maintain compliance.