Tuesday, 23.07.2019, 18:32
Welcome Guest
All Html Tags

Articles for Webmaster
:: Proffesional Website Builders
:: Div Tag in Html Examples
:: Notepad As a Free Html Editor

option Tag in Html

Defines an option of a select form field. The option element goes inside the select element.

option Tag 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.

Browser Support


Code Example

<select name="dogs">
<option>Domestic Dog</option>
<option>Arctic Fox</option>
<option>Maned Wolf</option>
<option>Grey Wolf</option>
<option>Red Fox</option>

HtmlCodeExamples.Com © 2019