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

Class Purpose Color
label-default Standard label Gray
label-primary Important/Primary Blue
label-success Success Green
label-info Info Light blue
label-warning Warning Orange
label-danger Danger/Error Red

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

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

You may also like...