Open In App

What is the use of breadcrumb-item Class in Bootstrap ?

The .breadcrumb-item class in Bootstrap is utilized to style individual items within a breadcrumb navigation component. It defines the appearance of each breadcrumb item, providing visual cues to users about the hierarchical structure of the navigation path.

Bootstrap 5 Breadcrumb

Preview:



Syntax:

<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>

Explanation: Each breadcrumb item in the navigation is marked up using the <li> element with the .breadcrumb-item class. This class ensures consistent styling for breadcrumb items, typically displaying them as inline elements with appropriate spacing between items. Additionally, the .active class is used to denote the current page in the breadcrumb trail, while the aria-current="page" attribute provides accessibility information.

Features:

Ref: https://www.geeksforgeeks.org/bootstrap-5-breadcrumb/amp/



Article Tags :