Javatpoint Logo

91-9990449935

 0120-4256464

Bootstrap Badges and Labels


Bootstrap Badges

Bootstrap Badges are numerical indicators used to show that how many items are associated with the specific link. Badges are used to highlight new or unread items.

The class .badge within the <span> element is used to create badges.

Bootstrap Badge Example

Test it Now

Bootstrap Badge Example 2

You can also use badges inside other elements, such as buttons.

Let's take an example to see how to add badges to button.

Test it Now

Bootstrap Labels

Bootstrap labels are used to specify the additional information about something like offering counts, tips, or other makeup for pages.

The class .label is used to display the labels.


Bootstrap Label Example

Test it Now

Bootstrap Label Example 2: changing colors

We can change the label colors by using contextual label classes.

Test it Now

Bootstrap Label Example 3

Test it Now
Next TopicBootstrap Panels