Bootstrap creates forms in vertical, vertical form is a default form
<h2><i>Vertical form is a default form</i></h2> <form> <div class="form-group"> <label for="email">Email</label> <input type="email" class="form-control" id="email" placeholder="Enter email"> </div> <div class="form-group"> <label for="pwd">Password:</label> <input type="password" class="form-control" id="pwd" placeholder="Enter password"> </div> <div class="checkbox"> <label><input type="checkbox"> Remember</label> </div> <button type="submit" class="btn btn-danger">Submit</button> </form>
form-group
in the div, we have label value as email and input type as email with class attribute value as form-control
and id as email with placeholder as Enter emailform-group
in the div, we have label value as Password we have input type as password with class attribute value as form-control
, id as pwd and placeholder as Enter password checkbox
, we have input type as checkbox with value as Remember using label btn-danger
which creates the button in given color output
Views: 6461 | Post Order: 13