1<span class="badge badge-pill badge-primary">Primary</span>
2<span class="badge badge-pill badge-secondary">Secondary</span>
3<span class="badge badge-pill badge-success">Success</span>
4<span class="badge badge-pill badge-danger">Danger</span>
5<span class="badge badge-pill badge-warning">Warning</span>
6<span class="badge badge-pill badge-info">Info</span>
7<span class="badge badge-pill badge-light">Light</span>
8<span class="badge badge-pill badge-dark">Dark</span>
1Add any of the below mentioned modifier classes to change the appearance
2of a badge.
3<span class="badge badge-primary">Primary</span>
4<span class="badge badge-secondary">Secondary</span>
5<span class="badge badge-success">Success</span>
6<span class="badge badge-danger">Danger</span>
7<span class="badge badge-warning">Warning</span>
8<span class="badge badge-info">Info</span>
9<span class="badge badge-light">Light</span>
10<span class="badge badge-dark">Dark</span>
11
1Use the .badge-pill modifier class to make badges more rounded
2(with a larger border-radius and additional horizontal padding).
3Useful if you miss the badges from v3.
4
5<span class="badge badge-pill badge-primary">Primary</span>
6<span class="badge badge-pill badge-secondary">Secondary</span>
7<span class="badge badge-pill badge-success">Success</span>
8<span class="badge badge-pill badge-danger">Danger</span>
9<span class="badge badge-pill badge-warning">Warning</span>
10<span class="badge badge-pill badge-info">Info</span>
11<span class="badge badge-pill badge-light">Light</span>
12<span class="badge badge-pill badge-dark">Dark</span>
1Badges scale to match the size of the immediate parent element by
2using relative font sizing and em units.
3<h1>Example heading <span class="badge badge-secondary">New</span></h1>
4<h2>Example heading <span class="badge badge-secondary">New</span></h2>
5<h3>Example heading <span class="badge badge-secondary">New</span></h3>
6<h4>Example heading <span class="badge badge-secondary">New</span></h4>
7<h5>Example heading <span class="badge badge-secondary">New</span></h5>
8<h6>Example heading <span class="badge badge-secondary">New</span></h6>
9<button type="button" class="btn btn-primary">
10 Profile <span class="badge badge-light">9</span>
11 <span class="sr-only">unread messages</span>
12</button>