option

The option element represents an option in a select control, or an option in a labelled set of options grouped together in an optgroup, or an option among the list of suggestions in a datalist.

Attributes

<option attribute-name="attribute-value"></option>
Name Value Description
disabled disabled | empty Specifies that the element represents a disabled control
label string Specifies the label of the element
selected selected | empty Specifies that this option is pre-selected
value string Specifies a value

Global

Example | disabled

Example | label

Example | selected

Example | value

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1