E-mail List Archives
Re: Label for and input id--basic question revisited.
From: Steve Faulkner
Date: Jan 24, 2014 8:32AM
- Next message: Lewis Phillips: "Re: Label for and input id--basic question revisited."
- Previous message: Nancy Johnson: "Label for and input id--basic question revisited."
- Next message in Thread: Lewis Phillips: "Re: Label for and input id--basic question revisited."
- Previous message in Thread: Nancy Johnson: "Label for and input id--basic question revisited."
- View all messages in this Thread
case 1 for/id is necessary
case 2 for/id is not necessary
here are some tests i carried out a few years back:
http://www.html5accessibility.com/tests/form-labels.html
--
Regards
SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>
On 24 January 2014 15:28, Nancy Johnson < <EMAIL REMOVED> > wrote:
> 2 Questions :
>
> If the the label and input abut each other in the layout, is 'label
> for' 'id' necessary?
> <label class="someclass" label for="name">name</label><input
> type="text" id="name">
>
> If the label wraps around the input is 'label for' 'id' necessary?
> <label class="someclass">name<input type="text"></label>
>
> My understanding was the labeling came at a time when we all used
> layout tables and the label was in one column and input in another
> column?
>
> Thanks
>
> Nancy
> > > >
- Next message: Lewis Phillips: "Re: Label for and input id--basic question revisited."
- Previous message: Nancy Johnson: "Label for and input id--basic question revisited."
- Next message in Thread: Lewis Phillips: "Re: Label for and input id--basic question revisited."
- Previous message in Thread: Nancy Johnson: "Label for and input id--basic question revisited."
- View all messages in this Thread