Name
<option>
Synopsis
<option> ... </option>
Define an option within a <select>
item in a
<form>
.
Attributes
-
disabled
Disable this option, making it inactive.
-
label
=string
Provide a label for this option.
-
selected
Make this item initially selected.
-
value
=string
Return the specified value to the form-processing application instead of the
<option>
contents.
See Chapter 4 for more information on using forms.
Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.