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

axe-core, axe DevTools and this checker
Contentinfo landmark should not be contained in another landmark (rule landmark-contentinfo-is-top-level)

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

  1. Run the checker: it outlines the nested footer.
  2. In DevTools, select it and check its ancestors for <main>, <aside>, <nav> or a role attribute.

How to fix it

  1. Move the site footer out so it’s a direct child of <body> (or a plain <div> wrapper), after <main>.
  2. 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

More detail