Bootstrap Badges and Labels

Bootstrap Badges and Labels are used to highlight important information like notifications, status, or categories.

๐Ÿ“Œ These features are available mainly in Bootstrap 3. In Bootstrap 4+, labels became badges only.


๐ŸŽฏ Bootstrap Labels

Labels are small inline-highlight elements.

โœ” Basic Label Example:



๐ŸŽจ Label Classes

ClassPurposeColor
label-defaultStandard labelGray
label-primaryImportant/PrimaryBlue
label-successSuccessGreen
label-infoInfoLight blue
label-warningWarningOrange
label-dangerDanger/ErrorRed

Example:


๐Ÿ”” Bootstrap Badges

Badges are used to display small count values like unread notifications.

โœ” Basic Badge Example:


๐Ÿ“ Badges in Button


๐ŸŽฏ Badges in Navigation


๐Ÿงพ Badges in List Group


โœ” Summary

FeatureLabelsBadges
Display small inline textโœ”๏ธโŒ
Used for counts/notificationsโŒโœ”๏ธ
Available in Bootstrap 3โœ”๏ธโœ”๏ธ
Bootstrap 4 changesRemoved (merged into badges)Still available

You may also like...