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

Added 1 May 2024

Which class is used to create a modal in Bootstrap?

  1. .modal-dialog Correct answer
  2. .popup
  3. .dialog-box
  4. .modal-popup

Correct answer

A. .modal-dialog

13 views

MCQSEXAM

Explanation

.modal-dialog is the class required inside a .modal wrapper to build a Bootstrap modal. The structure is .modal > .modal-dialog > .modal-content, which then holds the header, body and footer.

.popup, .dialog-box and .modal-popup are not Bootstrap classes.

Practise more Computer Science MCQs with answers and explanations 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