WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: form accessibility

for

From: _mallory
Date: Aug 11, 2016 1:57PM


On Wed, Aug 10, 2016 at 08:48:19PM +0000, Angela French wrote:
> Jamous,
> Doesn't the <label> wrapped around the <input type="checkbox"> help usability to allow the user to click on the label to actually check the box, so they don't have to aim just for the tiny checkbox?
>
They don't have to wrap to get that benefit. You'll also get it when you
use the input's id and the label's for attribute linking to each other
as well.

So, both methods should allow clicking on the label to focus on the input :)

_mallory