I'm currently learning HTML and I am having difficulties understanding the for
attribute of <label>
.
Can anyone clarify this to me with examples?
I'm currently learning HTML and I am having difficulties understanding the for
attribute of <label>
.
Can anyone clarify this to me with examples?
Its used for inputs, it binds <input for="myId">
to <span id="myId">
Also see:
This Answer and the MDN Documentation