What is it?
A breadcrumb is a row of links that shows where the current page sits in the site’s hierarchy: Home › Camping › Tents › Trailhead 2P Tent. Each level is a link to a parent page, and the last item is the page you’re on. It answers two questions at a glance: Where am I? and How do I get one level up?
The name comes from Hansel and Gretel, who dropped breadcrumbs to find their way home. You’ll find breadcrumbs on web shops, documentation sites, help centers, government sites and admin tools: anywhere with a deep hierarchy of pages.
Anatomy
shop.example.com/c/camping/tents/trailhead-2p
Trailhead 2P
A location-based breadcrumb on a product page
- 1
Landmark
A <nav> labelled "Breadcrumb", so screen reader users can jump to it and know what it is.
- 2
Root (Home)
The first level. Usually "Home" or the site name, linking to the start page.
- 3
Ancestor links
One link per level above the current page, in order. Each must open a page that exists.
- 4
Separator
A › or / between levels. Pure decoration: drawn with CSS or hidden from screen readers.
- 5
Current page
The last item. Plain text (not a link) with aria-current="page". Can be shortened if very long.
- 6
Ordered list
The levels sit in an <ol>, so screen readers say "list, 4 items" and users know how deep they are.
Location-based or path-based?
There are two very different ideas behind the same-looking trail:
| Type | Shows | Example |
|---|---|---|
| Location-based | Where the page lives in the site’s hierarchy. Always the same for a page. | Home › Lighting › Lanterns › Storm Lantern |
| Path-based (history) | The pages the user visited to get here. Different every time. | Home › Search “lantern” › Storm Lantern |
Location-based is what people almost always mean by “breadcrumbs” and what you should expect. Path-based trails just repeat the browser’s Back button, and they produce confusing results when users arrive from search, an email or another site. A third kind, attribute-based, shows the filters that narrowed a list (Tents › 2-person › Under $200); it often looks like a row of removable chips.
A web pattern
Breadcrumbs belong to websites (desktop and mobile web). Native iOS and Android apps don’t use them: the navigation bar shows a back button with the previous screen’s title, and Android adds the system Back gesture. If you see a breadcrumb in a native app, it’s usually a web view, or a design copied from the website. Test whether it still behaves like the app’s back navigation.
Designs & variants
Click the links in each example. The last two are the usual answers to “what do we do on a phone?”:
shop.example.com/c/camping/tents
Tents
Location-based
WebShows where the page lives in the site's hierarchy, no matter how the user got there. The most common and most useful type.
shop.example.com/p/storm-lantern
Storm Lantern
Path-based (history)
WebShows the pages the user visited. It repeats what the browser's Back button already does and changes every visit, so most guidelines advise against it.
shop.example.com/c/tents?people=2&max=200
7 tents
Attribute-based
WebShows the filters that narrowed a list. Often built like chips you can remove. Try removing a filter.
shop.example.com/p/trailhead-2p
Collapsed on small screens
Mobile webKeeps the first level and the last two, and hides the middle behind a … button. Tap it: every hidden level must still be reachable.
shop.example.com/p/trailhead-2p
Trailhead UltraLight 2-Person Tent
Back to parent
Mobile webOn narrow screens many shops show only the parent level as a ‹ link. Short and easy to tap, but it hides how deep the page is.
Trailhead 2P Tent
$189 · 2-person
Native apps: no breadcrumb
iOS / AndroidApps use the back button in the navigation bar (and the system Back gesture on Android) instead. Breadcrumbs are a web pattern.
- Separators:
›,/or>. Purely decorative, whichever the design system picks, as long as it’s consistent. - Home as an icon: a little house instead of the word “Home”. Needs an accessible name (“Home”), or a screen reader just says “link”.
- With a dropdown per level: some large shops let you open a level to jump to a sibling category (Tents ▾ → Stoves). Each dropdown is a dropdown with all its own tests.
Check this part
A user browses Tents, then searches for "lantern" and opens a lantern. The breadcrumb says Home › Camping › Tents › Storm Lantern. What is the bug?
Which app should show a back button in the navigation bar instead of a breadcrumb?