Landmarks should have a unique role or role/label/title (i.e. accessible name) combination

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

The message you saw

axe-core, axe DevTools and this checker
Landmarks should have a unique role or role/label/title (i.e. accessible name) combination (rule landmark-unique)

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

What it means

Screen readers show a list of the page’s landmarks: “banner”, “navigation”, “main”, “contentinfo”, and so on. This message means two or more landmarks have the same role and the same name (or both have no name), so they appear as identical entries in that list.

The most common case is two <nav> elements without labels, one for the main menu and one in the footer, both announced as just “navigation”. It also happens with several <aside> sidebars, or <section>s with the same aria-label. axe compares names ignoring upper and lower case.

Who is affected

Two landmarks of the same kind have the same name (or none), so screen-reader users can't tell them apart in the landmarks list.

Screen-reader users choose a landmark from a list to jump to it. When two entries say the same thing, they have to try each one to find the one they want.

This is a best practice, not a WCAG requirement.

How to find it

  1. Run the checker: the report outlines the first landmark and lists the others with the same role and name.
  2. In DevTools, search for <nav, <aside and <section, and check each one’s aria-label or aria-labelledby.

How to fix it

  1. For each repeated landmark, add an aria-label that says what it is: “Main”, “Footer”, “Breadcrumb”, “Related articles”.
  2. Or point aria-labelledby at the visible heading inside it.
  3. Don’t include the role word in the label (“Main navigation” is read as “Main navigation navigation”). “Main” is enough.
  4. If one of them isn’t really a landmark (a list of links that isn’t a menu), make it a <div> instead.

Examples

Two menus

Before

<nav>…main menu…</nav>
<footer>
  <nav>…footer links…</nav>
</footer>

After

<nav aria-label="Main">…main menu…</nav>
<footer>
  <nav aria-label="Footer">…footer links…</nav>
</footer>

Named by a visible heading

Before

<aside>
  <h2>Related articles</h2>…
</aside>
<aside>
  <h2>Newsletter</h2>…
</aside>

After

<aside aria-labelledby="rel">
  <h2 id="rel">Related articles</h2>…
</aside>
<aside aria-labelledby="news">
  <h2 id="news">Newsletter</h2>…
</aside>

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