Hello folks! welcome back to a new edition of our tutorial on Bootstrap. In this tutorial post, we will be discussing about Bootstrap Labels.
Labels are great for offering counts, tips, or other markup for web pages.
Labels are great for offering counts, tips, or other markup for web pages.
Example
The following example illustrates the use of .label class for displaying labels -
<h1>Example Heading <span class = "label label-default">Label</span></h1> <h2>Example Heading <span class =" label label-default">Label</span></h2> <h3>Example Heading <span class = "label label-default">Label</span></h3> <h4>Example Heading <span class = "label label-default">Label</span></h4>
Output
When the above example is executed, it will produce the following result -
Example Heading Label
Example Heading Label
Example Heading Label
Example Heading Label
You can modify the appearance of labels by using of modifier classes like, label-default, label-primary, label-success, label-info, label-warning, label-danger.
Example
Following example demonstrates this -
<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>
Output
When the above example is executed, it will produce the following result -
Default Label Primary Label Success Label Info Label Warning Label Danger Label
READ: Bootstrap | Pagination
Alright guys! This is where we are going to be rounding up for this tutorial. In our next tutorial guide, we are going to be studying about the Bootstrap Badges.
Feel free to ask your questions where necessary and we will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.
Feel free to ask your questions where necessary and we will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.