In Bootstrap 5, breadcrumbs are used to indicate the current page's location within a navigational hierarchy. They visually show the path from the homepage to the current page and allow users to easily navigate back to previous pages.
- Breadcrumbs are built using an ordered list (
<ol>
) with the class.breadcrumb
. - Each breadcrumb item is wrapped inside an
<li>
element with the class.breadcrumb-item
. - The current page (or the active item) has an additional class
.active
, and by default, it’s styled to look inactive (i.e., not clickable).