EN, Change language
Englishالعربية
OM-047

Use semantic HTML and group breadcrumbs within a navigation landmark.

The requirement (from the design system site)

Use semantic HTML and group breadcrumbs within a navigation landmark.

Why it matters to users

Screen reader users jump between navigation landmarks to understand where they are on a site. A breadcrumb trail outside a named nav is read as a set of loose links and loses its meaning as the path to this page.

How to fix it

Wrap gup-breadcrumbs in a nav element with an aria-label such as Breadcrumb, because the component does not add the landmark itself. Then scan again.

How we measure it

The breadcrumb trail is inside nav (or role=navigation) with an accessible name (e.g. aria-label Breadcrumb / مسار التنقل), and items are in an ol/ul or role=list. gup-breadcrumbs gets no shortcut: it passes only inside a named nav (see note).

The official gup-breadcrumbs renders a div role=list with no nav landmark, so sites must wrap it in nav themselves.

The rule on the design system site

Related rules

Breadcrumbs in a nav · Oman OM-047 | xfix