codescracker


html

HTML OPTION Tag



« Previous Tutorial Next Tutorial »


The OPTION tag is used to define the options written within the SELECT tag. The options are created by embedding the OPTION tag within the opening and the closing tags of the OPTION tag.

Each option is separately written within a separate set of OPTION tag can not contain any other tag within it.

Attributes of the OPTION tag

The following table describes the various attributes of the OPTION tag.

Attribute Description
label Refers to the heading of the several groups
disabled Disables the OPTION tag
selected Refers to the option that is to be displayed as default
value Refers to the value that is sent to the server

« Previous Tutorial Next Tutorial »



Tools
Calculator

Quick Links
Signup - Login - Give Online Test