Bootstrap > Navbar

Navbar Links in Bootstrap

How to create links in navbar using Bootstrap?


Navbar links

We can create navbar link using navbar link in the navbar 

 <h2>Navbar links</h2>
    <nav class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">TechFunda</a>
        </div>
        <div>
            <p class="navbar-text navbar-left">
                Articles
                <a href="#" class="navbar-link">Forums</a>  
            </p>
        </div>
    </nav>

In the above code snippet we have navbar links which is used to create links in the navbar, we use navbar-link to give the link, in the above code we have given the link as forums

output

 

 Views: 4021 | Post Order: 39



Write for us






Hosting Recommendations