HTML Reference Guide


Tag Index | Content List | HTML FAQ

<OPTION> ... </OPTION> SELECTON LIST OPTION

Description:

The OPTION element is only allowed within the SELECT element and indicates an individual choice or element in the Selection List. The end tag is not necessary, as it is implied by either the next occurrence of an OPTION tag or the end SELECT tag.

Attributes:

disabled - This is a stand-alone attribute which indicates the element is initially non-functional.

label - When a SELECT list uses the OPTGROUP elements to create a hierarchy of list values, this attribute indicates a shorter label that should be used in place of the content of the OPTION element.

selected - This is a stand-alone attribute which indicates that this Option is initially selected.

value - Indicates the value to be returned to the form processing script if the Option is chosen. The default VALUE if none is present is the content of the OPTION element.

Example code:

<form> <select NAME="list1" SIZE=3 MULTIPLE> <option VALUE="opt1">option1 <option VALUE="opt2">option2 <option SELECTED VALUE="opt3">option3 </select> </form> </optgroup> </select>

Result:

See Also:


  Free Web Pages | Super Links | Members Directory | Search | Privacy Statement | Site Map | Contact Us
Services: Create Free Web Page | Free Home Page | Free Web Page Builder
Free Web Page Templates | Free Web Sites | Free Web Space
Copyright © 1996 - 2006 WebSpawner.com. All rights reserved.