WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: [External Sender] Use of label without input

for

From: Brian Lovely
Date: Nov 15, 2019 2:15PM


Patrick, the reason I have for sometimes being kind of a stickler about
stuff, is because someone else will do something that is less than ideal,
then when I call it out they say "I just copied what I saw on such-and-such
page". These things just spread, and I want to make sure every dev has at
least a working knowledge of accessibility best practices, including
correct semantics. Who knows, in another context, something that is of
negligible impact may be more problematic. If I could guarantee this was an
isolated edge case I'd feel differently about it, but I've seen bad
practice creep and don't want to encourage it.

On Fri, Nov 15, 2019 at 2:41 PM Patrick H. Lauke < <EMAIL REMOVED> >
wrote:

> On 15/11/2019 18:19, Brian Lovely via WebAIM-Forum wrote:
> > 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.
>
> Even if it bugs you though, is it causing any kind of issue? It's
> probably a mild case of using a slightly inappropriate element, but not
> enough to, for instance, fail under WCAG 2.1 SC 1.3.1. To my knowledge,
> it has no adverse effect per se, so beyond the "what you're doing here
> is pointless", not sure there's any major reason for letting it slide.
>
> P
> --
> Patrick H. Lauke
>
>
> https://urldefense.com/v3/__http://www.splintered.co.uk__;!0Ns9_1dOjwg!PePYgqHWjF_CMTcE5uF9T-rncIMTl-ygCFPdFGJAbc3dCsWJJsPJ6sjPIxisJiEoXEdy7g$
> |
> https://urldefense.com/v3/__https://github.com/patrickhlauke__;!0Ns9_1dOjwg!PePYgqHWjF_CMTcE5uF9T-rncIMTl-ygCFPdFGJAbc3dCsWJJsPJ6sjPIxisJiEtdfMkJw$
>
> https://urldefense.com/v3/__http://flickr.com/photos/redux/__;!0Ns9_1dOjwg!PePYgqHWjF_CMTcE5uF9T-rncIMTl-ygCFPdFGJAbc3dCsWJJsPJ6sjPIxisJiEQxOGngw$
> |
> https://urldefense.com/v3/__http://redux.deviantart.com__;!0Ns9_1dOjwg!PePYgqHWjF_CMTcE5uF9T-rncIMTl-ygCFPdFGJAbc3dCsWJJsPJ6sjPIxisJiEjtyd5TQ$
> twitter: @patrick_h_lauke | skype: patrick_h_lauke
> > > https://urldefense.com/v3/__http://list.webaim.org/__;!0Ns9_1dOjwg!PePYgqHWjF_CMTcE5uF9T-rncIMTl-ygCFPdFGJAbc3dCsWJJsPJ6sjPIxisJiGQnqWI-Q$
> List archives at
> https://urldefense.com/v3/__http://webaim.org/discussion/archives__;!0Ns9_1dOjwg!PePYgqHWjF_CMTcE5uF9T-rncIMTl-ygCFPdFGJAbc3dCsWJJsPJ6sjPIxisJiENVEReTA$
> >


--
*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.