New! My 44-page ebook "CSS in 44 minutes" is out! 😃
# option
Defines an option within a <select>
dropdown.
Example: Copy
value
Defines the <select>
value if this option is selected.
"south-africa"
This value will be sent to the server when the form is submitted.
label
Defines a label for the option.
"Republic of South Africa"
The label will replace the option inner text.
disabled
Disables the option.
No value required.The option remains visible but is not selectable anymore.
selected
Selects the option when the web page loads.
No value required.