| OPTION |
|
| The OPTION tag is used to define the items in a fill-out form selection list. For example: |
|
| The programming language you are studying is:
<SELECT NAME="LINGOS">
<OPTION VALUE="1">PERL
<OPTION VALUE="2">JAVA
<OPTION VALUE="3" SELECTED>HTML
</SELECT> |
|
| OPTION Attributes: |
|
| CLASS=" ... " |
| This attribute indicates the style 'class' applicable to the tag to which it has been assigned, the style 'class' being a function of a style sheet. For example, assume the style class 'relaxed' includes text with a font size of 8, and the style class 'active' includes text with a font size of 12. Using the CLASS="relaxed" attribute with a tag will cause the text within that tag to be displayed with a font size of 8. Using the CLASS="active" attribute with a tag will cause the text within that tag to be displayed with a font size of 12. |
|
| DISABLED=" ... " |
| This attribute will disable access to the input method in which it is used. |
|
| ID="n" |
| The ID attribute is used to assign a unique ID selector (identification) to the tag in which it is invoked. A style may be assigned to that ID, which will effect only that one instance of the attribute. |
|
| SELECTED |
| This attribute will define the default or preselected item of the list. For example, in a list with the options being 'Black', 'Red, or 'Green', having SELECTED="Black" will cause the 'Black' list item to be automatically selected when the page loads. |
|
| TITLE=" ... " |
| The TITLE attribute is used to display a note or information in a popup window pertaining to the object to which it was assigned. The popup window is invoked by holding the mouse pointer over the object. |
|
| VALUE=" ... " |
| This attribute is used to specify which data is sent to the form processor if you choose the selection list item. |
|
This tag also accepts the following Event Handlers:
onClick
onDblClick
onDragStart
onMouseDown
onMouseUp
onMouseOver
onMouseMove
onMouseOut
onKeyPress
onKeyDown
onKeyUp
onSelectStart |