Login Form Template

Download our free, customizable Bootstrap login form template. Perfect for any website, this responsive and user-friendly template includes email and password fields, a remember me checkbox, and forgot password link.
<label class="form-label" for="user-email">Email:</label>
<input type="text" placeholder="" class="form-control" id="user-email" required>
Here’s a breakdown of the element:
- Label Element:
<label class="form-label" for="user-email">Email:</label>
-
class="form-label"
: This applies Bootstrap’s form label styling.for="user-email"
: This associates the label with the input element whoseid
isuser-email
.- The text “Email:” is displayed as the label for the input field.
- Input Element:
<input type="text" placeholder="" class="form-control" id="user-email" required>
type="text"
: Specifies that this input is a text field.placeholder=""
: An empty placeholder attribute, which could be filled with text to show a hint inside the input field.class="form-control"
: This applies Bootstrap’s form control styling to the input field.id="user-email"
: Provides a unique identifier for the input element, which links it to the label.required
: Makes the input field mandatory to fill before form submission.
Click here to download the full code