x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
5
6
<style>
7
body {
8
padding-top: 1em;
9
}   
10
</style> <div class="container-fluid">
11
        
12
<ul class="nav nav-pills flex-column">
13
    
14
<li class="nav-item">
15
<a class="nav-link active" href="#">HTML</a>
16
</li>
17
18
<li class="nav-item">
19
<a class="nav-link" href="#">CSS</a>
20
</li>
21
22
<li class="nav-item">
23
<a class="nav-link" href="#">JavaScript</a>
24
</li>
25
26
<li class="nav-item">
27
<a class="nav-link" href="#">Preview</a>
28
</li>
29
30
</ul>
31
32
</div>
33
        
34
<!-- Bundled -->
35
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>