- 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
Bootstrap .has-warning class
The has-warning class allows you to set warning for input.
You can try to run the following code to implement has-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> <form class = "form-horizontal" role = "form"> <div class = "form-group has-warning"> <label class = "col-sm-2 control-label" for = "inputWarning"> Input with warning </label> <div class = "col-sm-10"> <input type = "text" class = "form-control" id = "inputWarning"> </div> </div> </form> </body> </html>
- Related Articles
- Bootstrap alert-warning class
- Bootstrap warning Contextual class
- Bootstrap .btn-warning class
- Bootstrap 4 .border-warning class
- Usage of Bootstrap class panel-warning
- Bootstrap 4 Button .btn-outline-warning class
- Style Bootstrap 4 card with bg-warning class
- Bootstrap .has-success class
- Bootstrap .has-error class
- Create a yellow button (warning) with Bootstrap
- Add the yellow label (stating warning) with Bootstrap
- Set warning action with orange outlined Bootstrap 4 Button
- Bootstrap well class
- Bootstrap progress class
- Bootstrap .card class

Advertisements