0
0
Bootsrapmarkup~5 mins

Checkboxes and radios in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main difference between a checkbox and a radio button?
A checkbox allows selecting multiple options at once, while a radio button allows selecting only one option from a group.
Click to reveal answer
beginner
How do you group radio buttons so only one can be selected at a time?
Give all radio buttons the same name attribute value to group them together.
Click to reveal answer
beginner
In Bootstrap, which class is used to style a checkbox or radio button?
Use the <code>.form-check</code> class on a container and <code>.form-check-input</code> on the input element.
Click to reveal answer
intermediate
How can you make a checkbox or radio button disabled in Bootstrap?
Add the <code>disabled</code> attribute to the input element and optionally add the <code>.disabled</code> class to the label.
Click to reveal answer
beginner
Why is it important to use labels with checkboxes and radio buttons?
Labels improve accessibility by making the clickable area larger and helping screen readers identify the input purpose.
Click to reveal answer
Which Bootstrap class should you add to the input element of a checkbox?
A.input-checkbox
B.form-check-input
C.checkbox-input
D.form-control
How do you ensure only one radio button can be selected in a group?
AGive all radio buttons the same name
BGive all radio buttons the same id
CWrap them in a <div>
DAdd the disabled attribute
What attribute disables a checkbox or radio button?
Adisabled
Bblock
Cinactive
Dreadonly
Why should you always use a <label> with checkboxes and radios?
ATo make inputs bigger
BTo add color
CTo increase clickable area and improve accessibility
DTo disable inputs
Which container class wraps a checkbox or radio in Bootstrap?
A.form-group
B.form-control
C.input-group
D.form-check
Explain how to create a group of radio buttons in Bootstrap that allows only one selection.
Think about grouping and styling with Bootstrap classes.
You got /4 concepts.
    Describe why labels are important for checkboxes and radio buttons and how to connect them properly.
    Consider users who rely on keyboard or screen readers.
    You got /4 concepts.