Selection List Option

Support Key: [2|3|3.2|4] [X1|X1.1] [IE1|M2A1|N1|O2.1]
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson =
Main Index | Element Tree | Element Index | HTML Support History



   Quick Statistics   
End Tag:
   Optional
Standards Details:
In all HTML 4.x/XHTML DTDs
XHTML Modules:
Basic Forms, Forms
CSS 'display' Type:
NA
CSS Mapping:
NA
Default Rendering:
NA
Official Docs:
HTML 4.x, XHTML 1.1

What is it?
The OPTION element is only allowed within the SELECT element and indicates an individual choice or element in the Selection List. The end tag is not necessary in HTML (required in XHTML), as it is implied by either the next occurrence of another OPTION element, an end SELECT tag or a beginning or ending OPTGROUP element.

Common Attributes
%Core%
[2|3|3.2|4] [X1|X1.1] [IE4B2|M|N6B1|O5]
%Accessibility%
[2|3|3.2|4] [X1|X1.1] [IE|M|N6|O6]
%Events%
[2|3|3.2|4] [X1|X1.1] [IE|M|N6B1|O7]
%Language%
[2|3|3.2|4] [X1|X1.1] [IE|M|N6B3|O]

Specific Attributes
Disabled
[2|3|3.2|4] [X1|X1.1] [IE|M|N6B1|O6]
Standards Details: In all HTML 4.x/XHTML DTDs
Required? No
Description:
This is a stand-alone attribute which indicates the element is initially non-functional. Disabled form elements should not be submitted to the form processing script.
Values: NA (HTML); disabled (XHTML)
Label
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O]
Standards Details: In all HTML 4.x/XHTML DTDs
Required? No
Description:
When a SELECT list uses the OPTGROUP elements to create a hierarchy of list values, this attribute indicates a shorter label that should be used in place of the content of the OPTION element.
Values: CDATA
SDAForm
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O]
Standards Details: NA
Required? No
Description:
This is an SGML Document Access (SDA) attribute. SDA attributes are designed to transform HTML (and other SGML-based documents) to the ICADD DTD - which is used in creating accessible documents for users with visual disabilities (rendering in Braille, large print, speech synthesis, etc.) The attribute value specifies the name of the element to convert this element to in the SDA element group (in this case the 'LItem' element - "list item note".)
Value: LItem (Denotes a 'list item note' in SDA.)
SDAPref
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O]
Standards Details: NA
Required? No
Description:
This is an SGML Document Access (SDA) attribute. SDA attributes are designed to transform HTML (and other SGML-based documents) to the ICADD DTD - which is used in creating accessible documents for users with visual disabilities (rendering in Braille, large print, speech synthesis, etc.) The attribute value specifies content to be added BEFORE the original element content (in this case the string "Option: #AttVal(Value) #AttVal(Selected)") when the SDA document is rendered (SDA also allows attributes and values from the original element to be used in the new SDA element where necessary.) "#AttVal(Value)" references the OPTION VALUE attribute value, if present, and "#AttVal(Selected)" references the OPTION SELECTED attribute value, if present.
Value: "Option: #AttVal(Value) #AttVal(Selected)"
Selected
[2|3|3.2|4] [X1|X1.1] [IE1|M2A1|N1|O2.1]
Standards Details: In all HTML 4.x/XHTML DTDs
Required? No
Description:
This is a stand-alone attribute which indicates that this Option is initially selected.
Values: NA (HTML); selected (XHTML)
Value
[2|3|3.2|4] [X1|X1.1] [IE1|M2A1|N1|O2.1]
Standards Details: In all HTML 4.x/XHTML DTDs
Required? No
Description:
Indicates the value to be returned to the form processing script if the Option is chosen. The default VALUE if none is present is the content of the OPTION element.
Values: CDATA
Example
<form>
   <select name="list1" size="3" multiple>
      <option value="opt1">option1 </option>
      <option value="opt2">option2 </option>
      <option selected value="opt3">option3 </option>
   </select>
</form>
Parent Model
<optgroup> | <select>
Content Model
%Text%
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...