Document should not have more than one banner landmark

How to fix the landmark-no-duplicate-banner accessibility rule. Headings and landmarks. A best practice, not a WCAG requirement.

The message you saw

axe-core, axe DevTools and this checker
Document should not have more than one banner landmark (rule landmark-no-duplicate-banner)

Lighthouse has no audit for this rule, so you’ll only see it from axe-core based tools.

What it means

The banner landmark is the site-wide header: logo, site name, often the main menu. A <header> element becomes the banner only when it isn’t inside an <article>, <aside>, <main>, <nav> or <section>; inside those it’s just the header of that part and isn’t a landmark. role="banner" makes any element a banner.

This message means the page has more than one banner that screen readers can reach: typically two top-level <header> elements (a top strip and the real header), or a <header> plus a role="banner".

Who is affected

The page has more than one banner (site header) landmark, so screen-reader users can't tell which is the real site header.

Screen-reader users can jump to the banner to find the site name and menu. With two, the landmarks list shows two banners and they can’t tell which is the site header.

This is a best practice, not a WCAG requirement.

How to find it

  1. Run the checker: the report outlines one banner and lists the others.
  2. In DevTools, search for <header and role="banner", and check which ones are not inside <main>, <article>, <aside>, <nav> or <section>.

How to fix it

  1. Keep one top-level <header> for the site header. Put a top strip (contact details, language switch) inside it.
  2. Page or article headers belong inside <main> or <article>; there they aren’t banners.
  3. Remove role="banner" from anything that isn’t the site header.

Example

Before

<header class="top-strip">Call us…</header>
<header class="site-header">Logo, menu</header>

After

<header class="site-header">
  <div class="top-strip">Call us…</div>
  Logo, menu
</header>

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