How to create Bootstrap Dropdown button/link

Here is the sample code to create bootstrap dropdown with button link. How to create bootstrap buttons

Bootstrap Dropdown with link button

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h2>Dropdowns</h2>
  <p>The .dropdown class is used to indicate a dropdown menu.</p>
  <p>Use the .dropdown-menu class to actually build the dropdown menu.</p>
  <p>To open the dropdown menu, use a button or a link with a class of .dropdown-toggle and data-toggle="dropdown".</p>                                          
  <div class="dropdown">
    <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Not Ready
    <span class="caret"></span></button>
    <ul class="dropdown-menu">
      <li><a href="#">Tea</a></li>
      <li><a href="#">Lunch</a></li>
      <li><a href="#">Quality</a></li>
    </ul>
  </div>
</div>

</body>
</html>

Learn More: How to Download and Install Jenkins on Windows
Downloading Kali Linux

Leave a Reply