Let Wufoo do the hard work. Sign up for a free account and start making forms the easy way.
The Low Down
<option> is used to provide options for a
<option>s can be nested in a
<select>or within an
- The closing
</option>is optional if your
<optgroup>is coded correctly.
- In addition to the global attributes, other attributes include
value, selected, disabled, and
- Within a
selectedattribute is by default selected, and can be targeted with the
selectedhas no impact on a datalist option.
nameattribute on an option is obsolete. Use id instead.
labelattribute is text for the label showing the meaning of the option. If the
labelattribute isn’t defined, its value is that of the element text content. For example, if we include the following:
<datalist>, both the time and label will appear. In a
<select>, only the label will be displayed, but the value within the opening and closing
<option>tags is what will be sent with the form.
- If you include a
value, the value will be submitted to the server rather than the
labelor the content within the