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
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>