1. Home
  2. Computer Science MCQs
  3. Bootstrap
  4. Which class is used to create a dropdown menu in Bootstrap?

Added 1 May 2024

Which class is used to create a dropdown menu in Bootstrap?

  1. .dropdown-menu Correct answer
  2. .menu-dropdown
  3. .menu
  4. .dropdown

Correct answer

A. .dropdown-menu

14 views

MCQSEXAM

Explanation

.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.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Bootstrap MCQs

Practise all Bootstrap MCQs

Similar MCQs