Recall & Review
beginner
What is a form control in Bootstrap?
A form control in Bootstrap is a styled HTML input element like text boxes, checkboxes, or selects that lets users enter or choose data easily and consistently.
Click to reveal answer
beginner
How do you make a text input field using Bootstrap?
Use the
<input> element with the class form-control. For example: <input type="text" class="form-control">.Click to reveal answer
beginner
Why should you use
form-label with inputs?The <code>form-label</code> class styles labels nicely and connects them to inputs for better accessibility and user experience.Click to reveal answer
beginner
What Bootstrap class do you use for a select dropdown?Use the <code>form-select</code> class on the <code><select></code> element to get a styled dropdown.Click to reveal answer
beginner
How can you make a form control disabled in Bootstrap?
Add the
disabled attribute to the input element. Bootstrap styles it to look inactive and prevents user interaction.Click to reveal answer
Which class do you add to an
<input> to style it as a Bootstrap form control?✗ Incorrect
The correct Bootstrap class for styling inputs is
form-control.What element and class combination creates a styled dropdown in Bootstrap?
✗ Incorrect
Bootstrap uses
<select> with the class form-select for dropdowns.How do you disable a Bootstrap form control?
✗ Incorrect
The standard way is to add the
disabled attribute; Bootstrap styles it accordingly.Why is it important to use
<label> with form controls?✗ Incorrect
Labels help screen readers and users by linking text to inputs.
Which Bootstrap class styles a checkbox input?
✗ Incorrect
Checkboxes use the
form-check-input class in Bootstrap.Explain how to create a basic text input form control using Bootstrap.
Think about the HTML tag, the class to add, and how to connect a label.
You got /4 concepts.
Describe the purpose of Bootstrap form control classes and how they improve user experience.
Consider why uniform look and accessibility matter in forms.
You got /4 concepts.