Menu Riverview Church

OPTION

The option element represents an option in a select element or as part of a list of suggestions in a datalist element.

SYNTAX

HTML

<option attribute-name="attribute-value"></option>

ATTRIBUTES

Global

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

EXAMPLES

DISABLED

LABEL

SELECTED

VALUE

Web Hypertext Application Technology Working Group (WHATWG)