Form
Read about how to use the Form classes to your forms.
Example of a formβ
<form>
<div class="form-group">
<label>Email address</label>
<input
type="email"
class="form-control form-invalid"
placeholder="Enter email"
/>
</div>
<div class="form-group">
<label>Password</label>
<input
type="password"
class="form-control"
placeholder="Enter password"
/>
</div>
<button type="submit" class="btn btn-primary text-white">Submit</button>
</form>
Form Groupβ
<div class="form-group">
<label>Email address</label>
<input
type="email"
class="form-control form-invalid"
placeholder="Enter email"
/>
</div>
Form Disabledβ
<div class="form-group">
<label>Email address</label>
<input
type="email"
class="form-control form-invalid"
placeholder="Enter email"
disabled
/>
</div>
Form valid/invalidβ
<div class="form-group">
<label>Email address</label>
<input
type="email"
class="form-control form-invalid form-valid"
placeholder="Enter email"
/>
</div>
Form Labelβ
The form label have is already styled.
<label>Email address</label>
Form classesβ
Class | Properties |
---|---|
form-group | The class that makes the form div look good |
form-control | The class that makes your form input looks good |
form-invalid | If the content in a form is invalid, then the border color will be red |
form-valid | If the content in a form is valid, then the border color will be green |