I am new to Bootstrap and experimenting with it. The responsive navbar in Bootstrap is not functioning as expected on my screen. Can someone help me identify the issue and fix it?
<!DOCTYPE html>
<html>
<head>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89ebe6e6fdfafdfbe8f9c9bda7bca7ba">[email protected]</a>/dist/css/bootstrap.
min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous"
/>
</head>
<body>
<nav class="navbar navbar-light">
<div class="container-fluid">
<h2>Posts</h2>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarItems">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse" id="navbarItems">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="#">Feed</a></li>
<li class="nav-item"><a class="nav-link" href="#">Week</a></li>
<li class="nav-item"><a class="nav-link" href="#">Month</a></li>
<li class="nav-item"><a class="nav-link" href="#">Year</a></li>
<li class="nav-item"><a class="nav-link" href="#">Infinity</a></li>
<li class="nav-item"><a class="nav-link" href="#">Latest</a></li>
</ul>
</div>
</div>
</nav>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="791b16160d0a0d0b1809394d574c574a">[email protected]</a>/dist/js/bootstrap.bundle.min.js"
integrity="sha384ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"
></script>
</body>
</html>
I included the full code, hoping that clicking the hamburger icon would collapse the nav bar and then reopen it upon clicking again.