Bootstrap Question:

Tell me how to create a navbar in bootstrap?

Tweet Share WhatsApp

Answer:

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.

Download Bootstrap PDF Read All 128 Bootstrap Questions
Previous QuestionNext Question
Tell me can you put a table within bootstrap panel?Tell me what is list group in Bootstrap and what is the use of it?