I am new to web development and attempting to create a button that triggers a dropdown menu when clicked. I have tried the following code, but for some reason, the dropdown is not working correctly. Can anyone help me identify the issue or correct my code? Thank you very much.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="css/bootstrap.css" />
</head>
<body>
<div class="row m-2">
<div class="col"><h2>Logo</h2></div>
<div class="col">
<div class="dropdown">
<div
class="btn btn-success dropdown-toggle"
id="x"
data-toggle="dropdown"
>
Courses
</div>
<div class="dropdown-menu" aria-labelledby="x">
<a href="#" class="dropdown-item">A1</a>
<a href="#" class="dropdown-item">A2</a>
<a href="#" class="dropdown-item">B1</a>
<a href="#" class="dropdown-item">B2</a>
</div>
</div>
</div>
<div class="col"><div class="btn btn-outline-dark">About me</div></div>
<div class="col"><div class="btn btn-outline-dark">Contact</div></div>
</div>
<script src="js/popper.min.js"></script>
<script src="js/jquery-3.7.1.min.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
Currently experimenting with creating a navigation bar with buttons that trigger dropdown menus upon clicking.