1. Home
  2. Computer Science MCQs
  3. Bootstrap
  4. Which class is used to create a responsive navigation bar…

Added 1 May 2024

Which class is used to create a responsive navigation bar in Bootstrap?

  1. .navbar Correct answer
  2. .nav
  3. .navigation
  4. .navbar-responsive

Correct answer

A. .navbar

13 views

MCQSEXAM

Explanation

.navbar creates Bootstrap's responsive navigation header. Combined with .navbar-expand-lg, a .navbar-toggler button and .collapse, it collapses into a hamburger menu on small screens.

.nav is the simpler base class for tabs and pills and is not responsive in itself.

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