Drop-Down Lists - The <select> Tag

Drop-down lists are a more compact form of the check box or radio button. To create a drop-down list, use the <select> </select> tags. Items in the list are created using the <option> </option> tags.

The primary attributes of the <select> tag are:

The primary attributes of the <option> tag are:

<select name="D2">
<option value="S">Swimming</option>
<option value="B">Biking</option>
<option value="H">Hiking</option>
<option value="R">Running</option>
</select>
<select name="D1" size="4" multiple>
<option value="S" selected>Swimming</option>
<option value="B">Biking</option>
<option value="H">Hiking</option>
<option value="R">Running</option>
</select>