in Bootstrap by
Q:
How to create a navbar in bootstrap

▼ Show 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.

Bootstrap
Learn More with Madanswer

Related questions

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