Which class is used to create a dropdown menu in Bootstrap?
Correct answer
A. .dropdown-menu
14 views
A. .dropdown-menu
14 views
.dropdown-menu defines the list of items that opens. It sits inside a .dropdown wrapper next to a toggle button that has .dropdown-toggle and data-bs-toggle="dropdown".
.dropdown is only the wrapper; the menu itself needs .dropdown-menu.
For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.