
Madhusudan C. answered 05/30/19
Tutor
5.0
(31)
Bachelor degree in Computer Information Systems
"for" attribute in <label> tag is used to bind the label to controls such as <button>, <input>, <meter>, <output>, <progress>, <select>, or <textarea> element.
The value of "for" attribute should be equal to the "id" of the control.
here is a working example: