- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Add Red label with Bootstrap
Use .label-danger class in Bootstrap to add red colored label.
You can try to run the following code to implement the .label-danger class −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <p>If you find any issues, click below</p> <span class = "label label-danger">Danger</span> </div> </body> </html>
- Related Articles
- Add green label (stating success) with Bootstrap
- Add the yellow label (stating warning) with Bootstrap
- Add a light-blue label (set info) with Bootstrap
- Add header to label sections in dropdown menu with Bootstrap
- Add plain text next to a form label within a form with Bootstrap
- How to add image before optgroup label using Bootstrap?
- Add a red background color to an element to set danger action with Bootstrap
- Bootstrap Form Label
- Container for form input and label with Bootstrap
- Indicate danger with red outlined Bootstrap 4 Button
- Add a red border to an element in Bootstrap to indicate danger
- Usage of Bootstrap label class
- Add information with Bootstrap 4 card
- Add style to images with Bootstrap
- Allow a label to be used for form validation with Bootstrap

Advertisements