Bootstrap – Navs & tabs


Bootstrap – Navs and Tabs



”;



This chapter will discuss about Bootstrap navs and tabs. Create navigation menu using .nav class and tab navigation menu using .tab class.


Base nav

All types of Bootstrap”s navigation components are built with base class .nav (component build with flexbox). The nav components can be used to add a list of links to browse to other pages within the website.

  • The items can be added within the .nav-item class.

  • To add links within the item class use .nav-link class.




  • There is no .active state in the .nav component. The class is used in the following examples, to show that this class does not have unique styling.

    To convey active links to assistive technologies like screen readers use an aria-current attribute with value as a page for the current page or true if the current item is set.