WebAIM - Web Accessibility In Mind

E-mail List Archives

Use of label without input

for

From: Brian Lovely
Date: Nov 15, 2019 11:19AM


Is there any reason not to use a label as a simple container for text,
without any related input? The best reason I can come up with is "pride in
your work", but that's likely not enough. Minus being associated with an
input via the for attribute, a label element seems to be a non-semantic
container like a div, span, or <p>.

It bugs me that people do this, but I can't find any citable reason to tell
them to stop.

--
*Brian Lovely*
Capital One Digital Accessibility
804.389.1064




The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.