Skip to main content
Raasta
ModerateBest practicelandmark-unique

Landmarks can’t be told apart

When a page has two landmarks of the same type, such as two <nav> elements, with no names or the same name, people can’t tell them apart in the landmarks list. Give each one a distinct aria-label, such as “Main” and “Footer”.

Who it hurts

Screen reader users, who pick from a list of landmarks to move around the page.

Most sites have a main menu and a footer menu, often a breadcrumb trail too, all announced as just “navigation”.

How to fix it

Pick your stack. Review every change before you ship it.

Before

<nav>…</nav>
…
<nav>…</nav>

After

<nav aria-label="Main">…</nav>
…
<nav aria-label="Footer">…</nav>

Check it by hand too

Open your screen reader’s landmarks list. Every entry should be distinguishable, such as “Main navigation”, “Breadcrumb navigation” and “Footer navigation”.

Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.