To add a breadcrumb trail in Bootstrap 5.3, place an ordered list with the .breadcrumb class inside a labeled <nav>, link the previous pages, and mark the current page with aria-current="page". Bootstrap supplies the separators with CSS, so you can change the divider without changing the list markup.
How do I add breadcrumbs in Bootstrap?
Bootstrap breadcrumbs show a page’s position in a site hierarchy. They are a navigational aid, not a replacement for the site’s main navigation. The Bootstrap v5.3 component pattern uses a navigation landmark containing an ordered or unordered list; add .breadcrumb to the list and .breadcrumb-item to each list item.
As an Amazon Associate I earn from qualifying purchases.
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-item"><a href="/library">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>
</nav>
Replace the sample labels and paths with destinations on your site. Each earlier item should link to its corresponding page; the last item names the page currently being viewed. If the current page is at the top of the hierarchy, the trail can contain only that current item. See Bootstrap’s v5.3 breadcrumb documentation for the component’s documented pattern.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →How do I change the Bootstrap breadcrumb separator?
Bootstrap 5.3 inserts separators through CSS. The default divider is a slash, and the --bs-breadcrumb-divider custom property lets you override it locally on a breadcrumb navigation element. For example, use a greater-than sign like this:
#1 Best Overall
- HTML CSS Design and Build Web Sites
- Comes with secure packaging
- It can be a gift option
<nav aria-label="breadcrumb" style="--bs-breadcrumb-divider: '>'">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Library</li>
</ol>
</nav>
Use the literal > character in the HTML style value. The attribute changes the separator’s appearance; it does not change the breadcrumb labels or destinations.
Choose a divider that fits your design
- Text character: Set a character such as
>through the CSS custom property. This is the simplest local change and keeps the list markup unchanged. - SVG symbol: Bootstrap also documents an embedded SVG divider for a more tailored or directional appearance. When placing an SVG data URL in a CSS property, escape or URL-encode reserved characters so the value remains valid.
- No divider: Set the CSS custom property to an empty string to remove the separator.
For a site-wide change in a Sass build, Bootstrap exposes $breadcrumb-divider; setting it to none removes the divider. A Sass change belongs in the build configuration, while the CSS custom property is useful for a local override. Bootstrap documents these options in its v5.3 breadcrumb customization guidance.
How do I make Bootstrap breadcrumbs accessible?
Give the navigation landmark a meaningful label, such as aria-label="breadcrumb", and set aria-current="page" on the final item. The label identifies the type of navigation, while the current-page attribute tells assistive technology that the last item represents the page being viewed. Bootstrap recommends both in its breadcrumb accessibility guidance.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors- Keep the
<nav>landmark and list structure when styling the component. - Use links for ancestor pages that visitors can navigate to; do not present the current page as an ordinary ancestor link.
- Check the finished page’s markup and behavior. Bootstrap notes that accessibility depends on author markup, styling, and scripting; framework classes alone do not guarantee an accessible result. See its accessibility guidance.
Which Bootstrap version do these instructions cover?
The markup and customization examples here follow the official Bootstrap v5.3 documentation. In v5, Bootstrap simplified breadcrumb styling by removing padding, background color, and border radius, and introduced the divider custom property. If you are maintaining a v4 project, do not assume v5.3’s CSS-variable instructions apply unchanged; consult the Bootstrap v5 migration notes alongside the documentation for the version actually installed.
Quick Recap
Best Value
Rank #4
- Brand: Wiley
- Set of 2 Volumes
- A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers
Rank #3
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




