ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Navbar With Addon
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"> <meta name="description" content=""> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"> <title> Bootstrap Navbar With Addon </title> </head> <body> <h1 class="text-center">Bootstrap 5 Navbar With Addon</h1> <p class="text-justify text-center">Let us understand the bootstrap navbar with addon.</p> <nav class="navbar navbar-light bg-light"> <form class="container-fluid"> <div class="input-group"> <span class="input-group-text" id="basic-addon1">@</span> <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1"> </div> </form> </nav> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running