(Blanked the page) |
|||
Line 1: | Line 1: | ||
+ | <html lang="en"> | ||
+ | <head> | ||
+ | <title>Bootstrap Example</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> | ||
+ | <nav class="navbar navbar-inverse"> | ||
+ | <div class="container-fluid"> | ||
+ | <div class="navbar-header"> | ||
+ | <a class="navbar-brand" href="#">WebSiteName</a> | ||
+ | </div> | ||
+ | <ul class="nav navbar-nav"> | ||
+ | <li class="active"><a href="#">Home</a></li> | ||
+ | <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 1 <span class="caret"></span></a> | ||
+ | <ul class="dropdown-menu"> | ||
+ | <li><a href="#">Page 1-1</a></li> | ||
+ | <li><a href="#">Page 1-2</a></li> | ||
+ | <li><a href="#">Page 1-3</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#">Page 2</a></li> | ||
+ | <li><a href="#">Page 3</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </nav> | ||
+ | |||
+ | <div class="container"> | ||
+ | <h3>Navbar With Dropdown</h3> | ||
+ | <p>This example adds a dropdown menu for the "Page 1" button in the navigation bar.</p> | ||
+ | </div> | ||
+ | |||
+ | </body> | ||
+ | </html> |
Latest revision as of 12:29, 26 May 2018
Navbar With Dropdown
This example adds a dropdown menu for the "Page 1" button in the navigation bar.