+2 votes
in Bootstrap by
How to create a navbar in bootstrap

1 Answer

0 votes
by

To create a default navbar -

Add the classes .navbar, .navbar-default to the <nav> tag.

Add role = "navigation" to the above element, to help with accessibility.

Add a header class .navbar-header to the <div> element. Include an <a> element with class navbar-brand. This will give the text a slightly larger size.

To add links to the navbar, simply add an unordered list with the classes of .nav, .navbar-nav.

Related questions

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