Labels are used for categorization of articles or posts in a website.
Bootstrap allows for creating the labels. By default it will occupy the size of its next parent element. For example, if you embed label in a heading tag, it will re-size the fonts of label to match with the heading as shown below.
Example heading New
Colored labels
Appearance of labels can be changed by coloring them with the modifier classes.
Default Primary Success Info Warning Danger
<span class="label label-default">Default</span> <span class="label label-primary">Primary</span> <span class="label label-success">Success</span> <span class="label label-info">Info</span> <span class="label label-warning">Warning</span> <span class="label label-danger">Danger</span>
Rounded labels or pilled labels
Labels can be rounded with .label-pill modifier class. Rounded labels will have larger border radius and additional horizontal padding.
Default Primary Success Info Warning Danger
<span class="label label-pill label-default">Default</span> <span class="label label-pill label-primary">Primary</span> <span class="label label-pill label-success">Success</span> <span class="label label-pill label-info">Info</span> <span class="label label-pill label-warning">Warning</span> <span class="label label-pill label-danger">Danger</span>