Saved Bookmarks
| 1. |
How to create a tabbed navigation menu in Bootstrap? |
|
Answer» If you want to create a tabbed navigation MENU, then USE the “nav-tabs” class like this: <ul class="nav nav-tabs">Let us now see how we can form a tab based navigation menu: <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Tabbed Menu</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <LINK rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <SCRIPT src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <ul class="nav nav-tabs"> <li class="active"><a href="#">Home</a></li> <li><a href="#">AboutUs</a></li> <li><a href="#">Company</a></li> <li><a href="#">Services</a></li> <li><a href="#">Contact</a></li> </ul> </div> </body> </html>The output looks like tabbed navigation menu as shown below. The Home tab is marked as the current page: |
|