HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

option

Description

The option element for HTML 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

NameValueDescription
disableddisabled | emptySpecifies that the element represents a disabled control
labelstringSpecifies the label of the element
selectedselected | emptySpecifies that this option is pre-selected
valuestringSpecifies a value

Examples

1 · disabled

2 · label

3 · selected

4 · value