html select\ code example
Example 1: 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 2: 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 3: options in html
<form id="form">
<label for=""></label>
<br>
<input type="" id="">
<br>
<label for=""></label>
<br>
<input list="browsers" name="Thenicknamey" id="Thenickname">
<datalist id="browsers">
<option value=""></option>
<option value=""></option>
<option value=""></option>
</datalist>
<br>
<label for=""></label>
<br>
<input type="" id="">
<br>
<input type="" id="">
</form>
Example 4: select w3
<label for="cars">Choose a car:</label>
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>