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

Added 1 May 2024

Which class is used to create a button group in Bootstrap?

  1. .btn-group Correct answer
  2. .button-group
  3. .group-btn
  4. .button-container

Correct answer

A. .btn-group

16 views

MCQSEXAM

Explanation

.btn-group wraps a series of .btn buttons so they appear joined on one line. .btn-group-vertical stacks them, and sizing classes such as .btn-group-lg adjust the whole group.

The other class names in the options do not exist in Bootstrap.

Keep preparing with more 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