Which class is used to create a responsive navigation bar in Bootstrap?
Correct answer
A. .navbar
13 views
A. .navbar
13 views
.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.
Not sure why the answer is A? Ask here and get an explanation.