In bootstrap 5 nav menus are created to navigate through different web pages or locations. As these menus use links to navigate through different pages or locations. These menus increase the understandability of a website and make it easy for a user to move smoothly within different sections of a webpage. These menus are responsive which means that they collapse and expand according to the user’s screen size.

So, This article gives you detailed knowledge about  

  • How to create a Basic Nav?
  • What are the different BootStrap menu styles?

So, Today we are going to discuss different Nav menus (navigation menus) that a user can use according to its requirement to make a responsive design.

How To Create a Basic Nav?

The basic nav below is created using .nav class with

    tag and .nav-item wilt

  • tag:

    <img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/bootstrap-nav-menus-01.png" data-lazy- height="82" src="data:image/svg xml,” width=”970″>

    <div class=“container” style=“background-color:lightgray; margin-top: 10px;”>


        <ul class=“nav”>


            <li class=“nav-item”>


                <a class=“nav-link” href=“#”>Home</a>


            </li>


            <li class=“nav-item”>


                <a class=“nav-link” href=“#”>About</a>


            </li>

            <li class=“nav-item”>


                <a class=“nav-link” href=“#”>Contact</a>


            </li>


        </ul>

    </div>

    But in bootstrap 5 we can use nav as an html tag

About the author

<img data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/7011409B3A384F43A8417D1DAC68D179-150×150.jpg6265d49ced7fb.jpg" height="112" src="data:image/svg xml,” width=”112″>

Shehroz Azam

A Javascript Developer & Linux enthusiast with 4 years of industrial experience and proven know-how to combine creative and usability viewpoints resulting in world-class web applications. I have experience working with Vue, React & Node.js & currently working on article writing and video creation.