To create breadcrumb navigation in HTML, put an ordered list of links inside a <nav aria-label="Breadcrumb"> element, with the current page as the last item marked aria-current="page". Each earlier item links to a parent page, so users can see where they are and jump back up. This html breadcrumb navigation pattern is accessible without JavaScript.
Breadcrumbs suit sites with a clear hierarchy, such as shops, documentation and course catalogues. They are an addition to the main menu, never a replacement.
Use a <nav> landmark, an ordered list, and one link per ancestor page.
The pieces and why they are there:
<nav aria-label="Breadcrumb"> creates a landmark with a name, which separates it from the main menu.<ol> is an ordered list, because the order from top level to current page is meaningful.aria-current="page" identifies it.> or /) in the HTML, because screen readers would read them aloud.Draw the separators with a pseudo-element, so they stay out of the accessibility tree and the markup.
The selector li + li::before adds a slash before every item except the first. flex-wrap: wrap keeps long trails readable on narrow screens.
Search engines can show a breadcrumb trail under your result when the page describes it with schema.org BreadcrumbList markup. The simplest form is JSON-LD in the page.
The last item may omit item because it is the current page. The visible trail and the JSON-LD must match. Whether a search engine shows the trail is its own decision, so treat it as a possible benefit, not a guarantee.
| Type | Shows | When to use |
|---|---|---|
| Location-based | The site hierarchy | Most sites; the default choice |
| Attribute-based | Filters chosen, such as Shoes, Red, Size 42 | Product listings with filters |
| History-based | Pages the user visited | Rarely; the browser back button already does this |
Location-based breadcrumbs are the most useful and the easiest to keep correct.
<div> and plain text with no <nav> or list, which gives screen reader users no structure.aria-current, so users cannot tell which item it is.On a phone, a long trail wraps onto several lines. A common choice is to show only the parent page with a back arrow, which is the nearest useful step.
Hiding items with display: none removes them from the accessibility tree as well, which is acceptable here because the full trail stays in the markup for larger screens. Test the result with a keyboard and a screen reader.
Both options are accepted. A plain text item or a link with aria-current="page" both work, as long as the page is identified.
They give crawlers clear internal links and can show as a trail in results when structured data is present, but they are not a ranking guarantee.
It is the recommended structure, because the order matters. An unordered list works but conveys less.
No. Use a distinct label such as "Breadcrumb" so the landmarks are distinguishable.
Build breadcrumbs with <nav aria-label="Breadcrumb">, an ordered list of links, and aria-current="page" on the last item. Draw separators with CSS, add BreadcrumbList JSON-LD if you want search engines to understand the trail, and keep the trail short and consistent with your real site hierarchy.