Home → References → HTML Tags →
HTML Tag: option
Defines an option of a select form field.
HTML Dog is hosted by Titan Internet
Required Attributes
- None.
Optional Attributes
selectedcan be used to specify that the option is initially selected. It must be used in the formatselected="selected".valuecan be used to specify a value for the option. Ifvalueis not used, the value of theoptionelement is set to its contents by default.- Common attributes
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>

