Home »
MCQs »
Bootstrap MCQs
Which of the following is the correct way of creating a navigation bar in bootstrap?
13. Which of the following is the correct way of creating a navigation bar in bootstrap?
- <nav class='navigationbar navbar'>
- <nav class='nav navbar'>
- <nav class='navigationbar navbar-default'>
- <nav class='nav navbar-default'>
Answer
The correct answer is: D) <nav class='nav navbar-default'>
Explanation
Navigation bar is a navigation header placed on the top of the page to help users in navigating the web pages. In bootstrap, you can create a standard navigation bar using <nav class="nav navbar-default">