It represents one choice, and can take the following attributes. The contents of the Option element is presented to the user to represent the option.
<OPTION
CLASS=Style Sheet class name
ID=value
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
SELECTED
VALUE=value
event = script
>
Parameter |
Description |
CLASS |
Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. |
ID |
An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. |
LANG |
Specifies which language to use in ISO standard language abbreviation form. |
LANGUAGE |
Specifies the language the current script is written in and invokes the
proper scripting engine. The default value is JAVASCRIPT. |
SELECTED |
Indicates that this option is initially selected. |
VALUE |
When present indicates the value to be returned if this option is chosen. The returned value defaults to the contents of the Option element. |
event |
Can be one or more of these events: |
<SELECT NAME="Products List" SIZE="1">
<option value="1" selected>PRODUCTS LIST</option>
<option value="2">Sothink HTML Editor </option>
<option value="3">COOLMENU</option>
<option value="4">COOLTEXT</option>
<option value="5">SLIDINGMENU</option>
<option value="6">COOLBUTTON</option>
</SELECT>
The code is rendered as:
This element is a block element. The start tag is required, and the end tag is optional.