App navigation
Breadcrumb
Fil d'Ariane
Demo
Loading demo…
A row of links showing where the page sits in the site hierarchy, from the home page down to the current one. It lets people climb back up one or more levels in a single click.
Story
Did you know
The two languages borrow from different tales. English thinks of Hansel and Gretel, who drop breadcrumbs (and watch the birds eat them). French thinks of the thread Ariadne gives Theseus to find his way out of the labyrinth. For UX, the thread holds up better than the crumbs.
Timeline
- AntiquityThe myth of Theseus and Ariadne's thread.
- 1812The Brothers Grimm publish Hansel and Gretel.
- late 1990sBreadcrumbs spread across large hierarchical websites.
- 2010sGoogle shows marked-up breadcrumbs in its search results.
Vocabulary
Names
- FR
- Fil d'Ariane, chemin de navigation, breadcrumb
- EN
- Breadcrumb, breadcrumbs, breadcrumb trail, breadcrumb navigation
Common uses
- E-commerce: Home › Men › Shoes
- File and folder trees
- Admin panels with nested objects
- Hierarchical documentation
Often paired with
The components it usually sits with, by page type, in reading order.
Blog post
See the mock-upCode
<nav aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li><a href="/">Home</a></li>
<li><a href="/kitchen">Kitchen</a></li>
<li><a href="/kitchen/coffee-makers" aria-current="page">Coffee makers</a></li>
</ol>
</nav>
<style>
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; }
/* Empty content + slanted border: nothing for screen readers to read */
.breadcrumb li + li::before {
content: "";
display: inline-block;
height: 0.8em;
margin-inline: 0.6em;
border-right: 1px solid currentColor;
transform: rotate(15deg);
}
</style>Good to know
- An ordered list
<ol>, because the order means something. - The trail follows the site hierarchy, not the browsing history. Going back to the previous page is the Back button's job.
- Add
BreadcrumbListJSON-LD: Google can use it to show the page path in its results. - On mobile, keep
flex-wrapor collapse the middle (Home › … › Page). A trail that overflows sideways hides the very levels people need.
Accessibility
Must have
- A
<nav aria-label="Breadcrumb">: it is a landmark screen readers list on its own. - The last item, the current page, gets
aria-current="page".
Often forgotten
- A separator written in
contentcan be read by screen readers. Usecontent: ""with a border, or a<span aria-hidden="true">. - The links are often tiny: aim for a target of at least 24 × 24 px (WCAG 2.5.8).
- If you collapse the middle behind "…", make it a real
<button>with a name ("Show hidden levels") andaria-expanded.
Nice to have
- Repeat the page's exact title (
<h1>) in the last item, to confirm where you are. - Put the trail before the
<h1>in the DOM, so it comes up at the right moment when reading.