Form Tags

SELECT, OPTION

SELECT is the form equivalent of a list tag. It is used in conjunction with the OPTION tag to build a pull down list of options:
<SELECT NAME="Catalog">
<OPTION>Virginia Tech
<OPTION>University of Virginia
<OPTION>Radford University
</SELECT>

SELECT has a MUTIPLE attribute when users are allowed to choose more than one item.

OPTION has two attributes: SELECTED to configure a default item which is initially selected, and VALUE to specify a value to be returned when a certain option is chosen (otherwise the item label is returned).


Next Slide