Create a tabbed navigation menu with Bootstrap

BootstrapWeb DevelopmentCSS Framework

To create a tabbed navigation menu, start with a basic unordered list with the base class of .nav and add class .nav-tabs.

You can try to run the following code to create a tabbed navigation menu

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <p>My Website</p>
      <ul class = "nav nav-tabs">
         <li class = "active"><a href = "#">Home</a></li>
         <li><a href = "#">About</a></li>
         <li><a href = "#">Products</a></li>
         <li><a href = "#">Contact Us</a></li>
      </ul>
   </body>
</html>
raja
Published on 20-Jun-2018 11:55:24
Advertisements