html - Please clarify the W3C Label tag use -


The W3C specification for label tags says:

LABEL element can be used

P> You can use it because it is possible to attach more labels to an input.

There are also considerations of accessibility, the following recommendation (mind the role attribute):

  & lt; Label = "userEmail" role = "alert" & gt; That email address is invalid. & Lt; / Labels & gt;    

Comments