
Opening tag : <SELECT>
Closing tag: </SELECT>
Purpose:
The Select Tag is used on forms to provide a selection for the user. Users can choose between a selection of options - the options are listed using the OPTION tag. Select can be used to create dropdown menus.
Attributes:
Disabled
- Blocks Input for the field
Multiple
- This allows more than one option to be selected.
Name=string
- Specifies a name for the selection. This represents the variable name to be passed with the form to scripts such as PHP.
Event=Javascript
- Allows events to be allocated to the select tags, and a javascript to run accordingly.
Size=#
- Number of lines included in the selection.
Tabindex=#
- Specifies the sequence fields will be visited by tabbing through the form.
Example:
<SELECT Name="selection">
<OPTION Selected>Option 1</OPTION>
<OPTION>Option 2</OPTION>
<OPTION>Option 3</OPTION>
</SELECT>
Related Tags:
-
Back to:
Alphabetical Guide
Guide By Type