HomeReferencesHTML Tags

HTML Tag: option

Defines an option of a select form field.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Required Attributes

  • None.

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.
  • 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>