0 votes
in Bootstrap by
How we can create a navbar in Bootstrap?

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.

Related questions

0 votes
asked Oct 30, 2020 in Bootstrap by sharadyadav1986
+1 vote
asked Jan 20, 2023 in Bootstrap by SakshiSharma
...