Breadcrumb
The path to the current page: an ordered list of links in a labelled <nav>.
Live example
Breadcrumb
<nav aria-label="Breadcrumb" data-breadcrumb>
<ol>
<li><a href="#trail-title">Home</a></li>
<li><a href="#trail-title">Molecules</a></li>
<li><a href="#trail-title" aria-current="page">Breadcrumb</a></li>
</ol>
</nav>
A long trail wraps
<nav aria-label="Breadcrumb for the archive" data-breadcrumb>
<ol>
<li><a href="#long-title">Home</a></li>
<li><a href="#long-title">Documentation</a></li>
<li><a href="#long-title">Components and patterns</a></li>
<li><a href="#long-title">Navigation</a></li>
<li><a href="#long-title">Archive</a></li>
<li><a href="#long-title" aria-current="page">Breadcrumbs in older releases</a></li>
</ol>
</nav>
Attributes
| Attribute or value | Where | Effect |
|---|---|---|
data-breadcrumb | <nav aria-label="Breadcrumb"> | |
aria-current="page" | the last link (native ARIA) |
Keyboard
See the keyboard section of the APG Breadcrumb pattern.
Accessibility
aria-current="page"marks the current page, which is also bold (WCAG 1.4.1).- Separators use CSS alternative text
"", so they are not read. - Links are at least 24px tall (WCAG 2.5.8).
Specifications
See also
- Molecules
- Source:
css/components/molecules/breadcrumb.css,examples/molecules/breadcrumb.html - Demos: Orders view (Plain HTML, React, Angular, Astro, Vue, Svelte)
How other systems do it
For comparison only; these are not the standard this system follows.
- Apple Human Interface Guidelines: Path controls
- Material Design 3: No equivalent
- Vercel Geist: Breadcrumbs