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 |
