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

Popular posts from this blog

android - How can I execute default sms app? -

jquery .css('text-decoration') doesn't work from parents -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -