-5

I'm currently learning HTML and I am having difficulties understanding the for attribute of <label>.

Can anyone clarify this to me with examples?

Penguin9
  • 481
  • 13
  • 23

1 Answers1

0

Its used for inputs, it binds <input for="myId"> to <span id="myId">

Also see:
This Answer and the MDN Documentation

Community
  • 1
  • 1
Penguin9
  • 481
  • 13
  • 23