Home Menu

option

The option HTML 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)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms