- 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
Allow a label to be used for form validation with Bootstrap
Use the .control-label class in Bootstrap to allow a label to be used for form validation.
You can try to run the following code to implement the control-label class in Bootstrap
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"> <form class = "form-horizontal"> <div class = "form-group"> <label class = "control-label col-sm-2" for="email">Email-</label> <div class = "col-sm-10"> <p class = "form-control-static">amit@demo.com</p> </div> </div> </form> </div> </body> </html>
- Related Articles
- Container for form input and label with Bootstrap
- Bootstrap Form Label
- Add plain text next to a form label within a form with Bootstrap
- How to add form validation for empty input fields with JavaScript?
- Bootstrap Validation States
- Add Red label with Bootstrap
- How to create a password validation form with CSS and JavaScript?
- How to Apply Data Validation to Allow Only Numbers in Excel?
- Add a label for a form control in HTML?
- How can Tensorflow be used with pre-trained model to build the training and validation dataset?
- Add a light-blue label (set info) with Bootstrap
- Add green label (stating success) with Bootstrap
- Form validation using Django
- How can Tensorflow be used to predict a score for stackoverflow question dataset on every label using Python?
- Add header to label sections in dropdown menu with Bootstrap

Advertisements