Difference between revisions of "For attribute (HTML)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(External links)
Line 31: Line 31:
  
  
 +
[[Category:HTML attributes]]
 
[[Category:HTML elements]]
 
[[Category:HTML elements]]
  

Revision as of 05:22, 2 May 2016

In HTML, the for attribute is an attribute of the label element.

Description

The caption can be associated with a specific form control:

  • Using for attribute.
  • By putting the form control inside the label element itself.

= HTML Attributes

form = string

Associate the fieldset element with its form owner.

for = string

Specified to indicate a form control with which the caption is to be associated.

The attribute's value must be the ID of a labelable form-associated element in the same Document as the label element.

See also

External links


http://www.w3schools.com/tags/att_label_for.asp