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 11:56AM


So it looks like it's perfectly legit to use a label instead of a legend as
the group label of a fieldset element.

On Fri, Nov 15, 2019 at 1:45 PM glen walker < <EMAIL REMOVED> > wrote:

> I find it silly to use a <label> if you're not labeling anything. You
> don't get any extra semantic info from using that element by itself.
>
> The official html spec for the label,
>
> https://urldefense.com/v3/__https://www.w3.org/TR/html53/sec-forms.html*the-label-element__;Iw!0Ns9_1dOjwg!Mf7wWYgTjOxjs2lYmelag-QwuoP2BqIL52bi2i8C-08TDVeQew4RnrVp0vfPKmZXIg_lHQ$
> , says it
> should be used with a "labelable element". A list of labelable elements is
> provide at
> https://urldefense.com/v3/__https://www.w3.org/TR/html53/sec-forms.html*labelable-element__;Iw!0Ns9_1dOjwg!Mf7wWYgTjOxjs2lYmelag-QwuoP2BqIL52bi2i8C-08TDVeQew4RnrVp0vfPKmbYZ_N-7g$
> (which is the same url as the <label> spec but further up the page).
> > > https://urldefense.com/v3/__http://list.webaim.org/__;!0Ns9_1dOjwg!Mf7wWYgTjOxjs2lYmelag-QwuoP2BqIL52bi2i8C-08TDVeQew4RnrVp0vfPKmZgqTNUJw$
> List archives at
> https://urldefense.com/v3/__http://webaim.org/discussion/archives__;!0Ns9_1dOjwg!Mf7wWYgTjOxjs2lYmelag-QwuoP2BqIL52bi2i8C-08TDVeQew4RnrVp0vfPKmbseEZ2Qg$
> >


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