Associating Labels with Inputs Playground

The neighbourhood head’s night-watch form: a red string ties each label to the control label.control finds, a click on the label text is passed on by the…

Why it matters

A label that is not wired = a screen reader says "edit text", the click area is as small as the box (thumbs struggle with checkboxes), and getByLabelText tests fail. It is the most common accessibility audit finding. One correct <label> fixes all of it.

The key idea

A wired label does two jobs: a name + a click area

Common mistakes

Try it in this playground