The label element has a for
attribute which lets us bind this
attribute to the particular form
element that it references.
Take a look:
The for
attribute value should be
the same as the value for the id
of
the form input element. This way, the
label element is now bound to this particular
form element.
If you click on the label text,
you'll see that the particular
form element will be highlighted. Try
it! Click on the label Full Name:
in
the preview and see what happens.