option
The option HTML element represents an option in a select element or as part of a list of suggestions in a datalist element.
HTML
<option attribute-name="attribute-value"></option>
Attributes
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 |
disabled
label
selected
value