The option tag
The option
tag creates a drop-down list item for the select
tag in an HTML form.
Attributes
Attribute | Description |
---|---|
value |
The value that will be sent to the server when this item is selected.
An optional attribute. If not specified, the text of the tag itself will be transmitted. |
selected |
Specifies that this list item will be selected by default. |