HTML for Attribute
HTML for Attribute
The for attribute specifies which form element a label is bound to when used with the label element and it specifies the relationship between the result of the calculation and the element used in the calculation when used with the output element.
Used With:-
Elements | Attribute |
---|---|
label | for |
output | for |
Syntax:-
Its syntax is:- < element for="value" >