WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: label tag with form elements

for

From: Steve Faulkner
Date: Mar 13, 2015 7:12AM


>
> Any benefit


no

--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>;

On 13 March 2015 at 13:09, Mickey Williamson <
<EMAIL REMOVED> > wrote:

> If you're using the "for" attribute in the label tag, is there any reason
> to also wrap the input in the label tag?
>
> Any benefit to this:
>
> <label for="myinput">Label text<input id="myinput" type="text"
> name="textfield"></label>
>
> over this:
>
> <label for="myinput">Label text</label>
> <input id="myinput" type="text" name="textfield">
>
> Thanks,
> Mickey
> > > >