Home »
MCQs »
Bootstrap MCQs
Which of the following is the correct way of creating a black navigation bar in bootstrap?
21. Which of the following is the correct way of creating a black navigation bar in bootstrap?
- <nav class='nav navbar-black'>
- <nav class='nav navbar-default'>
- <nav class='nav navbar-inverse'>
- <nav class='nav navbar-dark'>
Answer
The correct answer is: C) <nav class='nav navbar-inverse'>
Explanation
In bootstrap, you can create an inverted navigation tab using the .navbar-inverse
class. It shows the navigation bar in black color.