1<label for="cars">Choose a car:</label>
2
3<select id="cars">
4 <option value="volvo">Volvo</option>
5 <option value="saab">Saab</option>
6 <option value="opel">Opel</option>
7 <option value="audi">Audi</option>
8</select>
1<select>
2 <option value="actual value 1">Display Text 1</option>
3 <option value="actual value 2">Display Text 2</option>
4 <option value="actual value 3">Display Text 3</option>
5</select>
1<label for="cars">Choose a car:</label>
2
3<select id="cars">
4 <option value="volvo">Volvo</option>
5 <option value="saab">Saab</option>
6 <option value="mercedes">Mercedes</option>
7 <option value="audi">Audi</option>
8</select>
1<html>
2 <head>
3 <title>Selection Inputs</title>
4 </head>
5 <body>
6 <form>
7 <label for="selector"> <!-- Can add label if want -->
8 <p>A "select" element allows users to input from a selection:</p>
9 <select id="selector"> <!-- Use "select" to create object -->
10 <option>Option 1</option> <!-- Add all applicable options -->
11 <option>Option 2</option>
12 <option selected>Option 3</option> <!-- add selected to change default from first option -->
13 <optgroup label="Group"> <!-- To create nested options for categories use "optgroup" -->
14 <option>Option 4</option>
15 <option>Option 5</option>
16 </select>
17 </label>
18 </form>
19 </body>
20</html>
1<form id="form">
2 <label for=""></label>
3 <br>
4 <input type="" id="">
5 <br>
6 <label for=""></label>
7 <br>
8 <input list="browsers" name="Thenicknamey" id="Thenickname">
9 <datalist id="browsers">
10 <option value=""></option>
11 <option value=""></option>
12 <option value=""></option>
13 </datalist>
14 <br>
15 <label for=""></label>
16 <br>
17 <input type="" id="">
18 <br>
19 <input type="" id="">
20 </form>
1<label for="cars">Choose a car:</label>
2<select name="cars" id="cars">
3 <optgroup label="Swedish Cars">
4 <option value="volvo">Volvo</option>
5 <option value="saab">Saab</option>
6 <option value="n/a" disabled>unavailable</option>
7 </optgroup>
8 <optgroup label="German Cars">
9 <option value="mercedes" selected>Mercedes</option>
10 <option value="audi">Audi</option>
11 </optgroup>
12</select>