ShapeYourPath
(current)
Run Code
Live Code Editor- Horizontal Nav Component Using nav Element
Source Code
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"> <title>Horizontal Nav Component</title> </head> <body> <h1 class="text-center">Horizontal Nav Component</h1> <p class="text-justify text-center">Let us understand Bootstrap horizontal Nav component.</p> <div class="container"> <nav class="nav"> <a class="nav-link active" aria-current="page" href="#">Active</a> <a class="nav-link" href="#">Link1</a> <a class="nav-link" href="#">Link2</a> <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled Link3</a> </nav> </div><!--/container--> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running