1<!-- Bootstrap 5 Navbar -->
2<nav class="navbar navbar-expand-lg navbar-light bg-light">
3 <div class="container-fluid">
4 <a class="navbar-brand" href="#">Navbar</a>
5 <button
6 class="navbar-toggler"
7 type="button"
8 data-bs-toggle="collapse"
9 data-bs-target="#navbarSupportedContent"
10 aria-controls="navbarSupportedContent"
11 aria-expanded="false"
12 aria-label="Toggle navigation"
13 >
14 <span class="navbar-toggler-icon"></span>
15 </button>
16 <div class="collapse navbar-collapse" id="navbarSupportedContent">
17 <ul class="navbar-nav me-auto mb-2 mb-lg-0">
18 <li class="nav-item">
19 <a class="nav-link active" aria-current="page" href="#">Home</a>
20 </li>
21 <li class="nav-item">
22 <a class="nav-link" href="#">Link</a>
23 </li>
24 <li class="nav-item dropdown">
25 <a
26 class="nav-link dropdown-toggle"
27 href="#"
28 id="navbarDropdown"
29 role="button"
30 data-bs-toggle="dropdown"
31 aria-expanded="false"
32 >
33 Dropdown
34 </a>
35 <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
36 <li><a class="dropdown-item" href="#">Action</a></li>
37 <li><a class="dropdown-item" href="#">Another action</a></li>
38 <li><hr class="dropdown-divider" /></li>
39 <li>
40 <a class="dropdown-item" href="#">Something else here</a>
41 </li>
42 </ul>
43 </li>
44 <li class="nav-item">
45 <a
46 class="nav-link disabled"
47 href="#"
48 tabindex="-1"
49 aria-disabled="true"
50 >Disabled</a
51 >
52 </li>
53 </ul>
54 <form class="d-flex">
55 <input
56 class="form-control me-2"
57 type="search"
58 placeholder="Search"
59 aria-label="Search"
60 />
61 <button class="btn btn-outline-success" type="submit">
62 Search
63 </button>
64 </form>
65 </div>
66 </div>
67</nav>
1<nav class="navbar navbar-expand-lg navbar-light bg-light">
2 <a class="navbar-brand" href="#">Navbar</a>
3 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
4 <span class="navbar-toggler-icon"></span>
5 </button>
6
7 <div class="collapse navbar-collapse" id="navbarSupportedContent">
8 <ul class="navbar-nav mr-auto">
9 <li class="nav-item active">
10 <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
11 </li>
12 <li class="nav-item">
13 <a class="nav-link" href="#">Link</a>
14 </li>
15 <li class="nav-item dropdown">
16 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
17 Dropdown
18 </a>
19 <div class="dropdown-menu" aria-labelledby="navbarDropdown">
20 <a class="dropdown-item" href="#">Action</a>
21 <a class="dropdown-item" href="#">Another action</a>
22 <div class="dropdown-divider"></div>
23 <a class="dropdown-item" href="#">Something else here</a>
24 </div>
25 </li>
26 <li class="nav-item">
27 <a class="nav-link disabled" href="#">Disabled</a>
28 </li>
29 </ul>
30 <form class="form-inline my-2 my-lg-0">
31 <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
32 <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
33 </form>
34 </div>
35</nav>
1<nav class="navbar navbar-expand-lg navbar-light bg-light">
2 <a class="navbar-brand" href="#">Navbar</a>
3 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
4 <span class="navbar-toggler-icon"></span>
5 </button>
6 <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
7 <div class="navbar-nav">
8 <a class="nav-item nav-link active" href="#">Home <span class="sr-only">(current)</span></a>
9 <a class="nav-item nav-link" href="#">Features</a>
10 <a class="nav-item nav-link" href="#">Pricing</a>
11 <a class="nav-item nav-link disabled" href="#">Disabled</a>
12 </div>
13 </div>
14</nav>
1<nav class="navbar navbar-expand-lg navbar-light bg-light">
2 <div class="container-fluid">
3 <a class="navbar-brand" href="#">Navbar</a>
4 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
5 <span class="navbar-toggler-icon"></span>
6 </button>
7 <div class="collapse navbar-collapse" id="navbarSupportedContent">
8 <ul class="navbar-nav me-auto mb-2 mb-lg-0">
9 <li class="nav-item">
10 <a class="nav-link active" aria-current="page" href="#">Home</a>
11 </li>
12 <li class="nav-item">
13 <a class="nav-link" href="#">Link</a>
14 </li>
15 <li class="nav-item dropdown">
16 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
17 Dropdown
18 </a>
19 <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
20 <li><a class="dropdown-item" href="#">Action</a></li>
21 <li><a class="dropdown-item" href="#">Another action</a></li>
22 <li><hr class="dropdown-divider"></li>
23 <li><a class="dropdown-item" href="#">Something else here</a></li>
24 </ul>
25 </li>
26 <li class="nav-item">
27 <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
28 </li>
29 </ul>
30 <form class="d-flex">
31 <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
32 <button class="btn btn-outline-success" type="submit">Search</button>
33 </form>
34 </div>
35 </div>
36</nav>
1<nav class="navbar navbar-expand-lg navbar-light bg-light">
2 <div class="container-fluid">
3 <a class="navbar-brand" href="#">Navbar</a>
4 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
5 <span class="navbar-toggler-icon"></span>
6 </button>
7 <div class="collapse navbar-collapse" id="navbarSupportedContent">
8 <ul class="navbar-nav me-auto mb-2 mb-lg-0">
9 <li class="nav-item">
10 <a class="nav-link active" aria-current="page" href="#">Home</a>
11 </li>
12 <li class="nav-item">
13 <a class="nav-link" href="#">Link</a>
14 </li>
15 <li class="nav-item dropdown">
16 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
17 Dropdown
18 </a>
19 <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
20 <li><a class="dropdown-item" href="#">Action</a></li>
21 <li><a class="dropdown-item" href="#">Another action</a></li>
22 <li><hr class="dropdown-divider"></li>
23 <li><a class="dropdown-item" href="#">Something else here</a></li>
24 </ul>
25 </li>
26 <li class="nav-item">
27 <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
28 </li>
29 </ul>
30 <form class="d-flex">
31 <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
32 <button class="btn btn-outline-success" type="submit">Search</button>
33 </form>
34 </div>
35 </div>
36</nav>
1<nav class="navbar navbar-expand-lg navbar-light bg-light">
2 <div class="container-fluid">
3 <a class="navbar-brand" href="#">Navbar</a>
4 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
5 <span class="navbar-toggler-icon"></span>
6 </button>
7 <div class="collapse navbar-collapse" id="navbarNav">
8 <ul class="navbar-nav">
9 <li class="nav-item">
10 <a class="nav-link active" aria-current="page" href="#">Home</a>
11 </li>
12 <li class="nav-item">
13 <a class="nav-link" href="#">Features</a>
14 </li>
15 <li class="nav-item">
16 <a class="nav-link" href="#">Pricing</a>
17 </li>
18 <li class="nav-item">
19 <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
20 </li>
21 </ul>
22 </div>
23 </div>
24</nav>
1<nav class="navbar navbar-dark bg-dark">
2 <!-- Navbar content -->
3</nav>
4
5<nav class="navbar navbar-dark bg-primary">
6 <!-- Navbar content -->
7</nav>
8
9<nav class="navbar navbar-light" style="background-color: #e3f2fd;">
10 <!-- Navbar content -->
11</nav>
1<nav class="navbar navbar-expand-lg navbar-light bg-light">
2 <div class="container-fluid">
3 <a class="navbar-brand" href="#">Navbar</a>
4 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
5 <span class="navbar-toggler-icon"></span>
6 </button>
7 <div class="collapse navbar-collapse" id="navbarNav">
8 <ul class="navbar-nav">
9 <li class="nav-item">
10 <a class="nav-link active" aria-current="page" href="#">Home</a>
11 </li>
12 <li class="nav-item">
13 <a class="nav-link" href="#">Features</a>
14 </li>
15 <li class="nav-item">
16 <a class="nav-link" href="#">Pricing</a>
17 </li>
18 <li class="nav-item">
19 <a class="nav-link disabled">Disabled</a>
20 </li>
21 </ul>
22 </div>
23 </div>
24</nav>
1<!-- As a link -->
2<nav class="navbar navbar-light bg-light">
3 <a class="navbar-brand" href="#">Navbar</a>
4</nav>
5
6<!-- As a heading -->
7<nav class="navbar navbar-light bg-light">
8 <span class="navbar-brand mb-0 h1">Navbar</span>
9</nav>