Oct 7, 2019 in Bootstrap
Q: How we can create a navbar in Bootstrap?

1 Answer

0 votes
Oct 10, 2019
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.

Related questions

0 votes
Oct 30, 2020 in Bootstrap
+2 votes
Jun 1, 2020 in Bootstrap