for attribute (label)
Sets the identifier of the object to which the label element is attached. The label element can be used to associate information with controls.
String that sets the identifier of the associated object.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the for attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments