option
Optional Attributes
Defines an option of a selectform field.
Optional Attributes
- selected can be used to specify that the option is initially selected. It must be used in the format selected="selected".
- value can be used to specify a value for the option. If value is not used, the value of the option element is set to its contents by default.
Example
<select name="dogs">
<option>Domestic Dog</option>
<option>Arctic Fox</option>
<option>Maned Wolf</option>
<option>Grey Wolf</option>
<option>Red Fox</option>
<option>Fennec</option>
</select>
No comments:
Post a Comment