• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Bootstrap by
Q:
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
+2 votes
asked Jun 1, 2020 in Bootstrap by SakshiSharma
...