ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Search Form With Navbar
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>Search Form With Navbar</title> </head> <body> <h1 class="text-center">Search Form With Navbar</h1> <p class="text-justify text-center">Let us understand the bootstrap search form with navbar with the help of an example.</p> <nav class="navbar navbar-light bg-light"> <div class="container-fluid"> <form class="d-flex"> <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-success" type="submit">Search</button> </form> </div> </nav><!--/example first--> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running