On the other hand Badges can also be used inside other elements, like buttons:
The following example shows how to add badges to buttons:
Example
<button type="button" class="btn btn-primary">Primary <span class="badge">7</span></button>
Labels
Labels are used to provide additional information about something:
1.Example New
2.Example New
3.Example New
4.Example New
5.Example New
6. Example New
Use the .label
class, followed by
one of the six contextual classes .label-default
,
.label-primary
, .
label-success
,
.label-info
, .
label-warning
or .label-danger
,
within
a <span>
element to create
a label:
Example
<h1>Example <span class="label label-default">New</span></h1>
<h2>Example <span class="label label-default">New</span></h2>
<h3>Example <span class="label label-default">New</span></h3>
<h4>Example <span class="label label-default">New</span></h4>
<h5>Example <span class="label label-default">New</span></h5>
<h6>Example <span class="label label-default">New</span></h6>
The following example shows all contextual label classes:
Default Label
Primary Label
Success Label
Info Label
Warning Label
Danger Label
Example
<span class="label label-default">Default Label</span>
<span class="label label-primary">Primary Label</span>
<span class="label label-success">Success Label</span>
<span class="label label-info">Info Label</span>
<span class="label label-warning">Warning Label</span>
<span class="label label-danger">Danger Label</span>