+ 3
what are <label> tags?
can someone explain the use of html label tags?
2 odpowiedzi
+ 2
<input type="checkbox" id="mychkbx"><label for="mychkbx">click me and I check the box</label>
Try this snippet with and without the <label> tags, and you will see ;)
Accessory, the <label> and it's target don't require to be siblings ( but logically, they have to be visually close ^^ )
+ 1
They are used to define a label for an <input> element. It is useful for the user as it allow to click on the label instead of, by example, the radio button.