I'm having trouble with my navigation bar. I want to add "3" under the dropdown section and set up multiple menu items, such as Link 4.
I couldn't figure out how to do this in my code... Could it be that Bootstrap doesn't support this feature?
https://i.sstatic.net/0zSOD.png
Can someone show me an example of how to solve this issue? I've included my code for reference.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Pills with Dropdown</h2>
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Dropdown</a>
<div class="dropdown-menu">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Dropdown2</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Link 3</a>
<ul class="nav nav-pills">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Dropdown3</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Link 4</a></ul>
</div></div></div>
</body>
</html>