Forms

option

Defines a option in the drop down menu created by the select element. Use the selected attribute to set the option to be selected by default.

Syntax

<option attributes> ... </opion>

Example

<select>
   <option value=”one”>First option</option>
   <option selected=”selected” value=”two”>Second option in second category</option>
</select>

Related tags

CSS Properties

HTML attributes

Search the Soup!