HTML and CSS Reference
In-Depth Information
<option>Fish</option>
</select>
The result is shown in
Figure 9-6
.
Figure 9-6. A <select> element, formatted with size=3
9.8.2. The <option> Tag
Use the
<option>
tag to define each item within a
<select>
form control.
The browser displays the
<option>
tag's contents as an element within
the
<select>
tag's menu or scrolling list, so the contents must be plain
text only, without any other sort of markup.