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?
✗ Incorrect
The btn-group class groups buttons together to create a split button dropdown.
What attribute is needed on the dropdown toggle button to open the menu?
✗ Incorrect
Bootstrap 5 uses data-bs-toggle="dropdown" to activate dropdown toggling.
In a split button dropdown, what does the main button do?
✗ Incorrect
The main button performs the default or primary action immediately.
Which element contains the dropdown options in a split button dropdown?
✗ Incorrect
The dropdown options are inside a <ul> or <div> with the dropdown-menu class.
How does Bootstrap ensure the dropdown is accessible?
✗ Incorrect
Bootstrap uses ARIA roles and keyboard navigation to make dropdowns accessible.
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.