E-mail List Archives
Re: Use of label without input
From: Patrick H. Lauke
Date: Nov 15, 2019 12:41PM
- Next message: Lucy GRECO: "Re: wondering how to get in to the accessibility testing field full time"
- Previous message: Brian Lovely: "Re: [External Sender]Use of label without input"
- Next message in Thread: glen walker: "Re: Use of label without input"
- Previous message in Thread: Brian Lovely: "Re: [External Sender]Use of label without input"
- View all messages in this Thread
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
www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke
- Next message: Lucy GRECO: "Re: wondering how to get in to the accessibility testing field full time"
- Previous message: Brian Lovely: "Re: [External Sender]Use of label without input"
- Next message in Thread: glen walker: "Re: Use of label without input"
- Previous message in Thread: Brian Lovely: "Re: [External Sender]Use of label without input"
- View all messages in this Thread