Last active
June 28, 2024 18:39
-
-
Save joseaoc007/2d5a2727ee0f795daa5a8c59abaaa46e to your computer and use it in GitHub Desktop.
dropdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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.7.1/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">Dropdown Example | |
<span class="caret"></span></button> | |
<ul class="dropdown-menu"> | |
<li><a href="#">HTML</a></li> | |
<li><a href="#">CSS</a></li> | |
<li><a href="#">JavaScript</a></li> | |
</ul> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment