Attribute Details: For
 Back


The For attribute improves accessibility with some browsers. When a Label is used as the caption of an input element, the For attribute specifies which form element the label is bound to. Set it to the ID of its related input element.

For example:

<label for="male">Male</label>
<input type="radio" name="sex" id="male" value="male"> "



POTENTIAL VALUES

UserDefined




PARENT ELEMENTS

Click element to drill down for more information.

Label


 Back to top