×

Html & Html5

The World's best Software Development Study Portal

Bootstrap Badges


If we want to add special information or to attract more to the particular text than we can use badges. And we use .badge class for it.
Let’s understand them by this program :-






Output of this Program


Badges

BestT-shirts 20% discount

Like here through the badges we just attract the 20% discount.



Contextual Badges


If we want to change the color of this badge , so through color also it express the context.
Let’s understand them by this program :-






Output of this Program


Color Badges

Primary Secondary Success Danger Warning Info Light Dark

So here we just changed the color of badges .








Bootstrap 4 training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute