Category: Forms | Previous: SELECT | Next: TEXTAREA

<OPTION>

Description:

An option. The option element defines an option within a select box.

Syntax:

<OPTION VALUE="something" SELECTED> ...

Attributes:

Attribute Value Description
VALUE TEXT Sets the returned value if this is a selected menu item.
SELECTED NONE Sets this option as being selected in the select box.

Notes:

The navigation bar on this site uses a combination of select boxes and simple JavaScript to provide quick access to this site's pages.

Example:

<FORM ACTION="cgi/whoop.pl">
<SELECT NAME="menu">
<OPTION VALUE="Cows"> Cows
<OPTION VALUE="Horses" SELECTED> Horses
<OPTION VALUE="Pigs"> Pigs
</SELECT>
</FORM>



Index: HTML Reference | Back: OL | Next: P