Badges are a way to provide any content more details. Rectangular badges can be made by combining the .badge class with a contextual class (such as .badge-secondary) inside <span> elements. Keep in mind that badges scale to the parent element’s size, if any:
Example
Example heading New
Example heading New
Example heading New
Example heading New
Example heading New
Example heading New
Contextual Badges
PrimarySecondarySuccessDangerWarningInfoLightDark
To alter a badge’s color, use any of the contextual classes (.badge-*):
Example
PrimarySecondarySuccessDangerWarningInfoLightDark
Pill Badges
PrimarySecondarySuccessDangerWarningInfoLightDark
To make the badges rounder, use the .badge-pill class: