0
0
Bootsrapmarkup~5 mins

Split button dropdowns in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a split button dropdown in Bootstrap?
A split button dropdown is a button group with two parts: one part triggers a main action, and the other part opens a dropdown menu with more options.
Click to reveal answer
beginner
Which Bootstrap classes are essential to create a split button dropdown?
You need btn-group for grouping, btn for buttons, and dropdown-toggle with data-bs-toggle="dropdown" for the dropdown toggle button.
Click to reveal answer
intermediate
How do you make the dropdown part accessible for keyboard users?
Bootstrap automatically supports keyboard navigation for dropdowns. Use semantic buttons and ensure aria-expanded updates correctly when toggling.
Click to reveal answer
beginner
What role does data-bs-toggle="dropdown" play in split button dropdowns?
It tells Bootstrap’s JavaScript to toggle the dropdown menu when the button is clicked.
Click to reveal answer
intermediate
Why use a split button dropdown instead of a single dropdown button?
A split button lets users quickly perform a default action with one click, or choose other options from the dropdown, improving usability.
Click to reveal answer
Which class groups buttons together for a split button dropdown in Bootstrap?
Abtn-group
Bdropdown-menu
Cbtn-toggle
Ddropdown-item
What attribute is needed on the dropdown toggle button to open the menu?
Adata-bs-toggle="dropdown"
Bdata-toggle="dropdown"
Caria-haspopup="true"
Drole="button"
In a split button dropdown, what does the main button do?
ACloses the dropdown menu
BOpens the dropdown menu
CPerforms the default action
DDisables the dropdown
Which element contains the dropdown options in a split button dropdown?
A<code>&lt;button&gt;</code>
B<code>&lt;ul&gt;</code> or <code>&lt;div&gt;</code> with class <code>dropdown-menu</code>
C<code>&lt;div&gt;</code> with class <code>btn-group</code>
D<code>&lt;a&gt;</code> with class <code>btn</code>
How does Bootstrap ensure the dropdown is accessible?
ABy adding <code>tabindex="-1"</code> to all buttons
BBy disabling keyboard navigation
CBy hiding dropdown items visually
DBy using ARIA attributes and keyboard support
Explain how to create a split button dropdown in Bootstrap and why it is useful.
Think about grouping buttons and how users interact with them.
You got /5 concepts.
    Describe the accessibility features Bootstrap provides for split button dropdowns.
    Consider how users with keyboards or screen readers use dropdowns.
    You got /4 concepts.