WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Data Tables - Headers for Headers

for

From: David Ashleydale
Date: Mar 28, 2012 6:01PM


Tony,

I think you're suggesting something like this (using my example):

- Give "Susan's Age" an id of "a1"
- Give "20" headers of "a1" and an id of "a3"
- Give "Paul's Age" an id of "b1"
- Give "23" headers of "b1" and an id of "b3"
- Give "Place of Residence" an id of "c1"
- Give "San Francisco" headers of "a3 b3 c1"

So, when I ask the screen reader to tell me which headers are associated
with the "San Francisco" cell it would say "20", "23" and "Place of
Residence", but it may also know that "20" is associated with "Susan's Age"
and "23" is associated with "Paul's Age".

Hmm, I'd have to try it and see. :)

Thanks!
David

On Wed, Mar 28, 2012 at 4:42 PM, Tony Olivero < <EMAIL REMOVED> > wrote:

> David,
>
> What about giving each header cell an id and using the headers attribute to
> explicitly define the header on a per-cell basis?
>
> It's a fair amount of coding, but for this type of scenario, it may be your
> best option.
>
> Tony
>
>