Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Bootstrap Inline Labels and Badges

Bootstrap Inline Labels and Badges

Introduction

Using Bootstrap, you can create inline labels (i.e., Label and annotation text) and badges (i.e., indicators and unread counts).

Inline Labels

With inline labels you can create prominent labels and annotation text.

Example

Example

    

        

            

Default

            

Success

            

Warning

            

Important

            

Information

            

Inverse

        

    

View online

In bootstrap.css, lines 3162 to 3200 present the styles for label, label-success, label-warning, label-important, label-info, and label-inverse.

Badge

As Bootstrap mentions,

badges are small, simple components used to display indicators or counts for categories. They are often found in email clients used for push notifications, such as Mail.app, or in mobile apps.

Example

Example

    

        

            

1

            

2

            

4

            

6

            

8

            

10

        

    

View online

Note that in this example we used bootstrap-2.0.3.css, because badge styles are not defined in Bootstrap v2.0.1.

Click here to download all the HTML, CSS, JS, and image files used in this tutorial.