HTML and CSS Reference
In-Depth Information
ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended,
onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown,
onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart,
onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel,
onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange,
onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit,
onsuspend, ontimeupdate, onvolumechange, onwaiting
Element-Specific Attributes
disabled Occurrence of this attribute indicates that the enclosed set of options is disabled.
label This attribute contains a short label to use when the selection list is rendered as items
in a hierarchy.
Where would you like to go for your vacation?
<option id="choice1" value="Hong Kong"> Hong Kong </option>
<optgroup label="South Pacific">
<option id="choice2" label="Australia" value="Australia">
Australia </option>
<option id="choice3" label="Fiji" value="Fiji">
Wakaya (Fiji Islands) </option>
<option id="choice4" value="New Zealand">
New Zealand </option>
<option id="choice5" value="home" selected> Your backyard </option>
HTML 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 6+,
Netscape 6+, Opera 7+, Safari 1+
• This element should occur only within the context of a select element.
• The visual presentation of this element may vary slightly between browsers.
<option> (Option in Selection List)
This element specifies an item in a selection list defined by a select element.
Standard Syntax
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
Search WWH ::

Custom Search