WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Anchor inside label?

for

From: Steve Faulkner
Date: Apr 12, 2018 7:49AM


Hi Lynne, I added some advice and code examples
<https://www.w3.org/TR/html/sec-forms.html#example-42c5e0c5> around this to
the HTML spec a while back which may be helpful

The ability to click or press a label to trigger an event on a control
> provides usability and accessibility benefits by increasing the *hit area*
> of a control, making it easier for a user to operate. These benefits may be
> lost or reduced, if the label element contains an element with its own
> activation behavior, such as a link:
>
>
--

Regards

SteveF
Current Standards Work @W3C
<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;

On 12 April 2018 at 14:33, Isabel Holdsworth < <EMAIL REMOVED> >
wrote:

> Hi all,
>
> We're putting together a prototype that has a checkbox whose label
> contains an anchor (<a>) to a footnote further down in the page.
>
> This doesn't cause any validation errors, but I'm wondering if it's
> likely to throw up any accessibility issues?
>
> I'd appreciate your thoughts.
> > > > >