The banner landmark should not be inside another landmark

The site header, exposed as the banner landmark, should be a top-level region of the page, not nested inside main, navigation or another landmark. This is a best practice, not a WCAG requirement.

Rule IDlandmark-banner-is-top-level
ImpactModerate
Success criterion Best practice, not a WCAG requirement
Readabler fix Needs a change in the website’s code

Example

Before
<main>
  <div role="banner">
    <a href="/">Green Valley Bakery</a>
  </div>
  <h1>Fresh bread every morning</h1>
</main>

The landmarks list shows the banner inside main, so “skip to main” lands on the logo.

After
<header>
  <a href="/">Green Valley Bakery</a>
</header>
<main>
  <h1>Fresh bread every morning</h1>
</main>

Banner and main appear as separate regions, and users jump straight to either one.

Why it matters

Screen reader users move around a page by landmarks: a key press or a rotor menu takes them to the banner, the navigation, the main content or the footer. That only works when each landmark is a separate, top-level region.

When the banner is nested inside main, the site header looks like part of the page content. Jumping to main lands on the logo instead of the article, and the landmarks list shows a confusing tree.

This is a best practice rather than a WCAG requirement, but it directly affects how fast keyboard and screen reader users reach your content.

How to fix it

Place the site header as a direct part of the page body, next to <main>, not inside it.

A wrapper with a landmark role. Themes and page builders sometimes wrap the whole page in <main> or role="main". Change the wrapper to a plain <div> and put the landmark only around the page content:

<div class="page">
  <header>...</header>
  <main>...</main>
  <footer>...</footer>
</div>

A header for an article or section. A <header> inside <article>, <section>, <main>, <aside> or <nav> is not a banner, so you can use it freely there. Just do not add role="banner" to it:

<article>
  <header>
    <h2>Our sourdough story</h2>
  </header>
</article>

Explicit role on a div. Remove role="banner" from any element that is not the main site header.

Checklist

  1. Keep the site header outside main, nav and aside.
  2. Use role="banner" only on the site-wide header.
  3. Remove landmark roles from page-wide wrapper elements.
  4. Check the landmarks list in a screen reader.

How the check works

The check finds every banner landmark: elements with role="banner", and <header> elements that are not inside <article>, <aside>, <main>, <nav> or <section>. It walks up through each one's ancestors and fails when any ancestor is another landmark, such as main, navigation or a named region. It passes when no ancestor is a landmark.

Resources

Updated October 27, 2026