Bootstrap Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - Bootstrap

Which class is used to create a badge?


 

 

 

 



B


Solution:-

Badges are used to add extra information to content and are created by using badge Bootstrap span class along with a contextual class (for example, badge-success) on an <span> element.

The numbers (15, 10, and 5) are the badges.
Use the .badge class within <span> elements to create badges:

Example

<a href="#">Questions <span class="badge">15</span></a><br>
<a href="#">Articles <span class="badge">10</span></a><br>
<a href="#">Tutorials <span class="badge">5</span></a>

The following example code shows how to add badges to buttons:

Example

<button type="button" class="btn btn-primary">Slightbook <span class="badge">21</span></button>

 




Next 5 multiple choice(s)

1

How can you insert a search icon?

2

Which class is used to create a button group?

3

Which button class is used to create a large button?

4

Which class is used to create a big box for calling extra attention?

5

Which class shapes an image into a circle?

Comments