- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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 the yellow label (stating warning) with Bootstrap
Use .label-warning class in Bootstrap to add yellow label.
You can try to run the following code to implement the .label-warning 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>Warning label</p> <span class = "label label-warning">Warning</span> </div> </body> </html>
- Related Articles
- Add green label (stating success) with Bootstrap
- Create a yellow button (warning) with Bootstrap
- Add a yellow background color to an element to set warning action with Bootstrap
- Add Red label with Bootstrap
- Add a light-blue label (set info) with Bootstrap
- Add header to label sections in dropdown menu with Bootstrap
- Style Bootstrap 4 card with bg-warning class
- Add plain text next to a form label within a form with Bootstrap
- Bootstrap warning Contextual class
- Bootstrap .has-warning class
- Bootstrap .btn-warning class
- Bootstrap alert-warning class
- Set warning action with orange outlined Bootstrap 4 Button
- Bootstrap 4 .border-warning class
- Usage of Bootstrap class panel-warning

Advertisements