Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Page Title</title> <!-- Sets the title of the webpage that gets displayed for the name of the window/tab. -->
- <meta name = "viewport" content = "width=device-width, initial-scale = 1.0"> <!-- Tells Bootstrap to serve the mobile version of the page when on a mobile, even if the screen has enough pixels to display the desktop version. -->
- <link href = "css/bootstrap.min.css" rel = "stylesheet"> <!-- Loads Bootstrap's and our CSS styles. -->
- <link href = "css/styles.css" rel = "stylesheet">
- </head>
- <body>
- <div class = "navbar navbar-inverse navbar-fixed-top"> <!-- Creates a navbar that will be displayed at the top of our page. -->
- <div class = "container">
- <a href = "#" class = "navbar-brand">Navbar Title</a> <!-- The title of our navbar. -->
- <button class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbarCollapser"> <!-- Creates the button that will toggle the visibility of the navbar on a mobile device. -->
- <span class = "icon-bar"></span>
- <span class = "icon-bar"></span>
- <span class = "icon-bar"></span>
- </button>
- <div class = "collapse navbar-collapse navbarCollapser">
- <ul class = "nav navbar-nav navbar-right"> <!-- An unordered list containing the items on our navbar. -->
- <li class = "dropdown"> <!-- Makes dropdown menu -->
- <a href = "#" class = "dropdown-toggle" data-toggle = "dropdown">Dropdown On Navbar<b class = "caret"></b></a>
- <ul class = "dropdown-menu">
- <li><a href = "#">Item</a></li>
- <li><a href = "#">Item</a></li>
- <li><a href = "#">Item</a></li>
- </ul>
- </li>
- <li><a href = "#">Regular Item</a></li>
- </ul>
- </div>
- </div>
- </div>
- <div class = "container">
- <div class = "jumbotron">
- <center><h1>Jumbotron Title</h1>
- <p>Jumbotron text</p>
- <a href = "#" class = "btn btn-info btn-lg">Button</a>
- <a href = "#" class = "btn btn-success btn-lg">Button 2</a>
- </center>
- </div>
- </div>
- <div class = "navbar navbar-default navbar-fixed-bottom">
- <div class = "container">
- <p class = "navbar-text pull-left">Text Text</p>
- <a class = "navbar-btn btn-success btn pull-right">I'm using a button, but it doesn't link to anything.</a>
- </div>
- </div>
- <script src = "http://code.jquery.com/jquery-1.11.0.min.js"></script> <!-- Loads jQuery and Bootstrap's javascript files -->
- <script src = "http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
- <script src = "js/bootstrap.min.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment