HTML Tag <OPTION>

HTML Tag <OPTION>

<OPTION> Indicates items in a fill-out form selection list (see the <SELECT> tag).

Attribute of <OPTION> Tag

CLASS

Indicate which style class applies to the element.

<OPTION NAME="color" CLASS="casual">

Possible Values

Any class name.



DISABLED

Denies access to the input method.

<OPTION VALUE="Bogus" DISABLED>Tutorial is hear.

Possible Values

DISABLED



ID

Assigns a unique ID selector to an instance of the <OPTION> tag. When you then assign a style to that ID selector, it affects only that one instance of the <OPTION> tag.

<OPTION ID="dkm">PHP

Possible Values

Any ID Name.



SELECTED

Marks a selection list item as preselected.

<OPTION SELECTED VALUE=1>PHP Tutorial </OPTION>

Possible Values

SELECTED



TITLE

Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the selection list option.

<OPTION TITLE="Option">Tutorial

Possible Values

Any Text Message.



VALUE

Indicates which data is sent to the form processor if you choose the selection list item. If the VALUE= attribute is not present within the <OPTION> tag, the text between the <OPTION> tags is sent instead.

<OPTION VALUE=2>Tutorials</OPTION>

Possible Values

Option Name.




CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad