0
0
Bootsrapmarkup~5 mins

Form control basics in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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>&lt;select&gt;</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?
Aform-input
Binput-style
Ccontrol-input
Dform-control
What element and class combination creates a styled dropdown in Bootstrap?
A<code>&lt;select class="form-select"&gt;</code>
B<code>&lt;input type="dropdown" class="form-control"&gt;</code>
C<code>&lt;select class="form-control"&gt;</code>
D<code>&lt;dropdown class="form-select"&gt;</code>
How do you disable a Bootstrap form control?
AAdd the class <code>disabled-control</code>
BAdd the attribute <code>disabled</code> to the input
CAdd the class <code>form-disabled</code>
DWrap input in <code>&lt;div class="disabled"&gt;</code>
Why is it important to use <label> with form controls?
AIt makes the input required
BIt changes the input color automatically
CIt improves accessibility and links the label to the input
DIt disables the input
Which Bootstrap class styles a checkbox input?
Aform-check-input
Bform-control
Cform-checkbox
Dcheckbox-control
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.