0
0
Bootsrapmarkup~5 mins

Dropdown button basics in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a dropdown button in Bootstrap?
A dropdown button in Bootstrap is a button that shows a list of options when clicked. It helps save space and organizes choices neatly.
Click to reveal answer
beginner
Which Bootstrap class is used to create a dropdown container?
The class dropdown is used to create a container for dropdown buttons and their menu items.
Click to reveal answer
beginner
How do you make a button toggle a dropdown menu in Bootstrap?
Add data-bs-toggle="dropdown" attribute to the button and give it the class btn dropdown-toggle.
Click to reveal answer
beginner
What HTML element holds the dropdown menu items in Bootstrap?
A <ul> or <div> with the class dropdown-menu holds the dropdown items.
Click to reveal answer
intermediate
How do you make dropdown items accessible for keyboard users?
Use <a> or <button> elements inside the dropdown menu with proper focus styles and roles.
Click to reveal answer
Which class do you add to a button to make it a dropdown toggle in Bootstrap?
Adropdown-toggle
Bbtn-toggle
Cdropdown-button
Dbtn-menu
What attribute must be added to a button to enable Bootstrap's dropdown functionality?
Atoggle="dropdown"
Bdata-toggle="dropdown"
Cdata-bs-toggle="dropdown"
Ddropdown="true"
Which class is used for the container that holds dropdown menu items?
Amenu-dropdown
Bmenu-items
Cdropdown-list
Ddropdown-menu
What HTML element is commonly used for each dropdown item?
A&lt;p&gt;
B&lt;a&gt;
C&lt;span&gt;
D&lt;div&gt;
Why is it important to use semantic elements like <a> or <button> inside dropdown menus?
AFor better accessibility and keyboard navigation
BTo make the menu look colorful
CTo reduce file size
DTo disable the dropdown
Explain how to create a basic dropdown button using Bootstrap.
Think about the container, the button, and the menu structure.
You got /5 concepts.
    Describe why accessibility matters in dropdown buttons and how Bootstrap supports it.
    Consider users who use keyboard or screen readers.
    You got /5 concepts.