Attribute of <LABEL> Tag
Attribute of <LABEL> Tag
ACCESSKEY
Assigns a keystroke to the element.
Example:<LABEL FOR="idname" ACCESSKEY=H>
Possible Values
Any CHAR
CLASS
Indicates which style class applies to the <INPUT> element.
Example:<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.
Example:<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.
Example:<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.
Example:<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.
Example: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.
Example:<INPUT TYPE=RADIO NAME="cc"
VALUE="visa" TITLE="Visa">
Possible Values
Any Text Message.