Contentinfo landmark should not be contained in another landmark
How to fix the landmark-contentinfo-is-top-level accessibility rule. Headings and landmarks. A best practice, not a WCAG requirement.
The message you saw
Lighthouse has no audit for this rule, so you’ll only see it from axe-core based tools.
What it means
Contentinfo is the site-wide footer. This message means it sits inside another landmark, often because the footer was placed inside <main> with role="contentinfo", or the whole page is wrapped in an element with a landmark role.
A plain <footer> inside <article>, <aside>, <main>, <nav> or <section> isn’t contentinfo, so this rule ignores it. It flags elements with role="contentinfo" inside a landmark, and top-level <footer>s inside something given a landmark role.
Who is affected
The site footer (contentinfo) is nested inside another landmark, so screen readers present a confusing page outline.
Screen-reader users expect the site footer as its own top-level landmark. Nested inside main, it’s announced as part of the content and is harder to find.
This is a best practice, not a WCAG requirement.
How to find it
- Run the checker: it outlines the nested footer.
- In DevTools, select it and check its ancestors for
<main>,<aside>,<nav>or aroleattribute.
How to fix it
- Move the site footer out so it’s a direct child of
<body>(or a plain<div>wrapper), after<main>. - If the element isn’t the site footer, remove its
role="contentinfo"; a plain<footer>inside the content is fine.
Example
Before
<main>
…
<div role="contentinfo">© 2026 Acme</div>
</main>After
<main>…</main>
<footer>© 2026 Acme</footer>WCAG success criteria
None. This is a best practice: fixing it helps people using assistive technology, but it doesn’t affect WCAG conformance. Our scanner only reports it if you tick “Also show best-practice suggestions”.
Check your fix
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools. Scan again after your change: when the rule no longer appears under the problems, the fix worked.
An automated pass means this rule found nothing wrong. It doesn’t prove the page is accessible: some of what WCAG asks for needs a person to check, and the report’s manual checklist lists those steps.
Related fix guides
- Document should not have more than one contentinfo landmark
- Main landmark should not be contained in another landmark
- All page content should be contained by landmarks
More detail
- Deque University’s reference for landmark-contentinfo-is-top-level (the makers of axe-core, the engine our scanner uses)
- All fix guides