Skip to content

Breadcrumb

<nav aria-label="Breadcrumb">
<ol class="breadcrumb-list">
<li class="breadcrumb-item"><a class="breadcrumb-link" href="/">Home</a></li>
<li class="breadcrumb-separator" aria-hidden="true"></li>
<li class="breadcrumb-item">
<span class="breadcrumb-page" aria-current="page">Breadcrumb</span>
</li>
</ol>
</nav>
ClassPart
.breadcrumb-listThe <ol>
.breadcrumb-itemOne level
.breadcrumb-linkA level you can go back to
.breadcrumb-pageThe current one — not a link
.breadcrumb-separatorThe chevron between levels
.breadcrumb-ellipsisCollapsed middle levels

Set dir="rtl" on the page or on any subtree. Flip the chevron with the same :dir(rtl) trick the library uses for its own drawn arrows, since a chevron points along the reading direction.

  • aria-label="Breadcrumb" on the <nav>. A page usually has several navigations; the label is how they are told apart.
  • The current page is not a link. Use .breadcrumb-page with aria-current="page" — a link to where you already are is a dead end.
  • Separators are decoration. aria-hidden="true", or a screen reader reads a chevron between every level.
  • An ellipsis needs words. The dots alone say nothing; .sr-only text like “More levels” does.