The SELECT Tag


Inside <FORM> ... </FORM>, any number of SELECT tags are allowed, freely intermixed with other HTML elements (including INPUT and TEXTAREA elements) and text (but not additional forms).

Unlike INPUT, SELECT has both opening and closing tags. Inside SELECT, only a sequence of OPTION tags -- each followed by an arbitrary amount of plain text (no HTML markup) -- is allowed;

For example:

        <SELECT NAME="a-menu">
        <OPTION> First option.
        <OPTION> Second option.
        </SELECT>
The attributes to SELECT are as follows: The attributes to OPTION are as follows: Examples:
  1. <SELECT NAME="example">
    	<OPTION VALUE="one">Number 1
    	<OPTION VALUE="two">Number 2	
    	<OPTION VALUE="three">Number 3
    </SELECT>
  2. <SELECT NAME="example">
    	<OPTION>Number 1
    	<OPTION SELECTED>Number 2	
    	<OPTION>Number 3
    </SELECT>
  3. <SELECT NAME="example" SIZE=2>
    	<OPTION>Number 1
    	<OPTION>Number 2	
    	<OPTION>Number 3
    </SELECT>
  4. <SELECT NAME="example" SIZE=4>
    	<OPTION>Number 1
    	<OPTION>Number 2	
    	<OPTION>Number 3
    </SELECT>
  5. <SELECT NAME="example" MULTIPLE SIZE=4>
    	<OPTION SELECTED>Number 1
    	<OPTION>Number 2	
    	<OPTION SELECTED>Number 3
    </SELECT>
Example Picture