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

HTML Online Test

« Previous Tutorial Next Tutorial »

Like/Share Us on Facebook 😋