The HTML Attribute reference

"for" - html Attribute

  • Explicitly associates the label being defined with another control. When present, the value of this attribute must be the same as the value of the id attribute of some other control in the same document. When absent, the label being defined is associated with the element's contents.
  • Browsers can duplicate common GUI features with this.(e.g., the ability to click on a text label to select a radio button or checkbox).

Value(s): references to a ID token
Used in the element(s):
Elements Description
label This element associates a label with a form control.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.