W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2003

RE: label across /td

From: Aaron Smith <aaron@gwmicro.com>
Date: Thu, 13 Feb 2003 17:02:45 -0500
Message-Id: <>
To: "Mirabella, Mathew J" <Mathew.Mirabella@team.telstra.com>, "W3C-WAI-IG List" <w3c-wai-ig@w3.org>

Speaking in terms of a screen reader, it (the screen reader) shouldn't care 
where the label is in physical relation to the control. As long as the 
label is associated with the control correctly, the label would just speak. 
If you're talking about screen magnification, that's another can of worms.

At 04:55 PM 2/13/2003, Mirabella, Mathew J wrote:

>As most would agree, it would be reasonable to do the following
>         <td><label> ... </label></td>
>         <td><input... /></td>
>However, does this violate any accessibility guidelines that mention that 
>the label should be immediately to the left of the control?  in the above 
>example, it is pretty much immediately to the left, but this coding shows 
>the label and field separated by table cells.  This could result in some 
>issues in some occasions.
>The other issue is when you wish to make the field active on clicking the 
>label as well.  Normally you would need to code the field inside the label 
>along with the text label itself.  This is the case where you might put 
>label outside td.  But if this is not good coding.....?
>I guess it comes down to using CSS for all layout purposes, but the same 
>difficulties arise.  Are we suggesting that one might do the following.
><span><label>....></span><span><input .... /></span></label></span>
>where you specify CSS to lay things out the way you want, but you use 
>spans inside the label instead of block level elements, so that you are 
>not violating the notion of block level elements inside inline level ones?
>-----Original Message-----
>From: James Craig [mailto:work@cookiecrook.com]
>Sent: Friday, 14 February 2003 8:28 AM
>To: W3c-Wai-Ig
>Subject: Re: label across /td
>The markup guys would throw a fit about this proposal, and rightfully so.
>'label' is an inline element and cannot contain block-level elements like
>'td'. Mozilla and some other graphical browsers associate 'label' and
>'input' elements correctly, but I cannot speak for any screen readers.
>----- Original Message -----
>From: "Aaron Smith" <aaron@gwmicro.com>
>To: "Joe Clark" <joeclark@joeclark.org>; "WAI-IG" <w3c-wai-ig@w3.org>
>Sent: Thursday, February 13, 2003 3:09 PM
>Subject: Re: label across /td
> >
> > Ideally, we will be able to retrieve the contents of the label and apply
> > to the "associated" element regardless of what lies within the label tag.
> > But just to make sure I understand, are you proposing that beginning and
> > ending row tags might be inside of a label tag?
> >

To insure that you receive proper support, please include all
past correspondence (where applicable), and any relevant
information pertinent to your situation when submitting a
problem report to the GW Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development
Received on Thursday, 13 February 2003 17:02:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:13 UTC