Badges are numerical indicators of how many items are associated with a link:
The badges are represented by the numerals 5, 10, and 2.
To make badges, add the .badge class to <span> elements.
Badges can also be utilized within other elements, such as buttons.
The following example shows how to add badges to buttons:
Labels are used to convey more information about something.
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 New
Example New
Example New
Example New
Example New
Example New
The following sample demonstrates all contextual label classes:
Default Label
Primary Label
Success Label
Info Label
Warning Label
Danger Label
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.