dropdown menu w3schools code example
Example 1: Dropdown menu HTML
<select id="gender">
<option value="male"> Male </option>
<option value="female"> Female</option>
</select>
Example 2: dropdown on hover
.dropdown:hover .dropdown-menu {
display: block;
margin-top: 0; // remove the gap so it doesn't close
}
Example 3: html create drop down list
<html>
<head>
<title>Selection Inputs</title>
</head>
<body>
<form>
<label for="selector">
<p>A "select" element allows users to input from a selection:</p>
<select id="selector">
<option>Option 1</option>
<option>Option 2</option>
<option selected>Option 3</option>
<optgroup label="Group">
<option>Option 4</option>
<option>Option 5</option>
</select>
</label>
</form>
</body>
</html>