The contentinfo landmark should not be inside another landmark
The site footer, exposed as the contentinfo landmark, should be a top-level region, not nested inside main or another landmark. This is a best practice, not a WCAG requirement.
| Rule ID | landmark-contentinfo-is-top-level |
|---|---|
| Impact | Moderate |
| Success criterion | Best practice, not a WCAG requirement |
| Needs a change in the website’s code |
Example
<main>
<h1>Our menu</h1>
<div role="contentinfo">
<p>© 2026 Green Valley Bakery</p>
</div>
</main>The landmarks list shows the site footer inside main, so it seems part of the menu page.
<main>
<h1>Our menu</h1>
</main>
<footer>
<p>© 2026 Green Valley Bakery</p>
</footer>Main and the footer appear as separate regions; users jump straight to the contact details.
Why it matters
Screen reader users often jump straight to the footer to find contact details, opening hours or legal links. They do this with a landmark shortcut or a landmarks list, and they expect the footer to be its own top-level region.
When the footer is nested inside main, it is reported as part of the page content. The end of main becomes unclear, and the landmarks list shows a tree that does not match what sighted users see.
This is a best practice, not a WCAG requirement, but it makes the page structure predictable for keyboard and screen reader users.
How to fix it
Place the site footer after <main>, not inside it.
A layout wrapper with a landmark role. If your theme wraps the whole page in <main> or role="main", change the wrapper to a plain <div>:
<div class="page">
<header>...</header>
<main>...</main>
<footer>...</footer>
</div>
A footer for an article or card. A <footer> inside <article>, <section>, <main>, <aside> or <nav> is not a contentinfo landmark, so it is fine there. Do not add role="contentinfo" to it:
<article>
<h2>Rye loaf</h2>
<footer>Posted on 3 May</footer>
</article>
Explicit role on a div. Keep role="contentinfo" only on the site-wide footer, or replace it with a top-level <footer>.
After the change, open your screen reader's landmarks list and confirm that main and the footer appear as two separate entries, side by side.
Checklist
- Place the site footer after main, not inside it.
- Use role="contentinfo" only on the site-wide footer.
- Remove landmark roles from page-wide wrappers.
- Check the landmarks list in a screen reader.
How the check works
The check finds every contentinfo landmark: elements with role="contentinfo", and <footer> elements that are not inside <article>, <aside>, <main>, <nav> or <section>. It fails when any ancestor of that element is another landmark, such as main, navigation or a named region, and passes when none is.
Resources
- Landmark regions W3C WAI
Updated October 27, 2026