Created
August 13, 2019 14:29
-
-
Save tjkhara/f2a28e058aaed8d3be374adabe08cc06 to your computer and use it in GitHub Desktop.
Bootstrap 4 simple navbar code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
| <link | |
| rel="stylesheet" | |
| href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" | |
| integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" | |
| crossorigin="anonymous" | |
| /> | |
| <link rel="stylesheet" href="css/style.css" /> | |
| <title>Bootstrap Theme</title> | |
| </head> | |
| <body> | |
| <!-- Start Here --> | |
| <nav | |
| class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top" | |
| id="main-nav" | |
| > | |
| <div class="container"> | |
| <a href="index.html" class="navbar-brand">LoopLAB</a> | |
| <button | |
| class="navbar-toggler" | |
| data-toggle="collapse" | |
| data-target="#navbarCollapse" | |
| > | |
| <span class="navbar-toggler-icon"></span> | |
| </button> | |
| <div class="collapse navbar-collapse" id="navbarCollapse"> | |
| <ul class="navbar-nav ml-auto"> | |
| <li class="nav-item"> | |
| <a href="#home" class="nav-link">Home</a> | |
| </li> | |
| <li class="nav-item"> | |
| <a href="#explore-head-section" class="nav-link">Explore</a> | |
| </li> | |
| <li class="nav-item"> | |
| <a href="#create-head-section" class="nav-link">Create</a> | |
| </li> | |
| <li class="nav-item"> | |
| <a href="#share-head-section" class="nav-link">Share</a> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- End HTML here --> | |
| <script src="https://kit.fontawesome.com/051725a194.js"></script> | |
| <script | |
| src="https://code.jquery.com/jquery-3.3.1.slim.min.js" | |
| integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" | |
| crossorigin="anonymous" | |
| ></script> | |
| <script | |
| src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" | |
| integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" | |
| crossorigin="anonymous" | |
| ></script> | |
| <script | |
| src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" | |
| integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" | |
| crossorigin="anonymous" | |
| ></script> | |
| <script> | |
| // Get the current year for the copyright | |
| $("#year").text(new Date().getFullYear()); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment