Summary
- The
label
tag wraps text for a specific form control item. - The
for
attribute on a label tag explicitly associates that label with the form control and is used by screen readers. - The value of the
for
attribute must be the same as the value of the id
attribute of the form control.
Final Code