<LABEL> Tag & its Attribute

HTML Tag <LABEL>

<LABEL> Provides identifying text for a form widget.

Attribute of <LABEL> Tag

ACCESSKEY

Assigns a keystroke to the element.

<LABEL FOR="idname" ACCESSKEY=H>


Possible Values

Any CHAR



CLASS

Indicates which style class applies to the <INPUT> element.

<LABEL FOR="idname" CLASS="short">First
Name</LABEL>
<INPUT TYPE="TEXT" ID="idname">


Possible Values

Any Class Name.



FOR

Specifies the ID of the widget associated with the label.

<LABEL FOR="idname">First Name</LABEL>
<INPUT TYPE="TEXT" ID="idname">


Possible Values

Any Field Name.



ID

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

<LABEL FOR="idname" ID="234">First
Name</LABEL>
<INPUT TYPE="TEXT" ID="idname">


Possible Values

Any id Name.



STYLE

Specifies Style Sheet commands that apply to the input element.

<LABEL FOR="idname" STYLE="background :
red">First Name</LABEL>
<INPUT TYPE="TEXT" ID="idname">


Possible Values

CSS Property with value.



TABINDEX

Specifies where the input method appears in the tab order. For example, TABINDEX=3 places the cursor at the input element after the visitor presses the Tab key three times.

Credit card number:
<INPUT TYPE=TEXT NAME="ccard"
TABINDEX=5>


Possible Values

Integer Number.



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 input method.

<INPUT TYPE=RADIO NAME="cc"
VALUE="visa" TITLE="Visa">


Possible Values

Any Text Message.




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz