E-mail List Archives
label tag with form elements
From: Mickey Williamson
Date: Mar 13, 2015 7:09AM
- Next message: Steve Faulkner: "Re: label tag with form elements"
- Previous message: Graham Armfield: "Re: Unexpected Voiceover Tab Order and Focusing on Hybrid App"
- Next message in Thread: Steve Faulkner: "Re: label tag with form elements"
- Previous message in Thread: None
- View all messages in this Thread
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
- Next message: Steve Faulkner: "Re: label tag with form elements"
- Previous message: Graham Armfield: "Re: Unexpected Voiceover Tab Order and Focusing on Hybrid App"
- Next message in Thread: Steve Faulkner: "Re: label tag with form elements"
- Previous message in Thread: None
- View all messages in this Thread