Complete the code to add a Bootstrap class that shows a valid input style.
<input type="text" class="form-control [1]" id="username" required>
is-invalid which styles the input as invalid.form-check or form-label.The is-valid class adds a green border and check icon to show the input is valid.
Complete the code to add a Bootstrap class that shows an invalid input style.
<input type="email" class="form-control [1]" id="email" required>
is-valid which styles the input as valid.form-control-lg which do not affect validation.The is-invalid class adds a red border and error icon to show the input is invalid.
Fix the error in the code to correctly show the invalid feedback message.
<div class="invalid-feedback">[1]</div>
The invalid-feedback div should contain the error message text, not a class name.
Fill both blanks to create a valid input with a feedback message.
<input type="text" class="form-control [1]" id="name" required> <div class="[2]">Looks good!</div>
invalid-feedback with a valid input.is-valid class to the input.The input uses is-valid to show valid style, and the div uses valid-feedback to show the positive message.
Fill all three blanks to create an invalid input with a feedback message and label.
<label for="password" class="form-label [1]">Password</label> <input type="password" class="form-control [2]" id="password" required> <div class="[3]">Password is required.</div>
valid-feedback with invalid input.is-invalid class on the input.The label uses text-danger to show red text, the input uses is-invalid for invalid style, and the div uses invalid-feedback to show the error message.