select option in html code example
Example 1: dropdown in html
<select>
<option value="actual value 1">Display Text 1</option>
<option value="actual value 2">Display Text 2</option>
<option value="actual value 3">Display Text 3</option>
</select>
Example 2: html select list
<label for="cars">Choose a car:</label>
<select id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
Example 3: number dropdown html
<select id="selectNumber">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
Example 4: 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>
Example 5: select option html
<label for="gender"> Select you gender</label>
<select name="gender">
<option value="none" selected>Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">other</option>
</select>