You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #24, ids are not necessary to associate labels with their form controls, as long as those form controls are contained within the label. However, if a label is not a parent for its form control, then the label should have a for attribute, pointing to the unique id of the element it is providing the accessible name to.
The text fields on the demo site would fall into this pattern.
The text was updated successfully, but these errors were encountered:
As discussed in #24,
id
s are not necessary to associatelabel
s with their form controls, as long as those form controls are contained within thelabel
. However, if alabel
is not a parent for its form control, then thelabel
should have afor
attribute, pointing to the uniqueid
of the element it is providing the accessible name to.The text fields on the demo site would fall into this pattern.
The text was updated successfully, but these errors were encountered: