in Bootstrap by
Q:
How we can create a navbar in Bootstrap?

► Click here to show 1 Answer

0 votes
by
To create a navbar in a bootstrap at first, we have to add the classes .navbar, .navbar-default to the <nav> tag. After this, we have to add the role=”navigation” to the above element, and this will help in accessibility.

We have added a header class .nav-header to the <div> element, which will include an <a> element with a class navbar brand. From this, we will get a text with a larger size.
Bootstrap
Learn More with Madanswer

Related questions

+2 votes
asked Jun 1, 2020 in Bootstrap by SakshiSharma
...