option

Level: 2

The option element can only occur within a select element. It represents one choice, and can take these attributes:

disabled

Proposed.

selected

Indicates that this option is initially selected.

value

When present indicates the value to be returned if this option is chosen. The returned value defaults to the contents of the option element.

The contents of the option element is presented to the user to represent the option. It is used as a returned value if the value attribute is not present.


Preceding Section: input
Following Section: select
Parent Section: Forms and Input fields
Contents of HyperText Markup Language