E-mail List Archives
Thread: table headers attribute question
Number of posts in this thread: 2 (In chronological order)
From: Mark Guisinger
Date: Thu, May 21 2020 2:17PM
Subject: table headers attribute question
No previous message | Next message →
All,I have been looking at different accessibility scanning tools, WAVE, De=
que, and others.=C2=A0 I have noticed that not all of them point out a comp=
lex table with multiple levels of headers point out that the code should us=
e scope or the headers attribute tom which one would be required to pass 1.=
3.1: Info and relationships.=C2=A0 I have attached a sample table where one=
section header 2 portion has the correct headers attribute.=C2=A0 I would =
think that the other parts of the table would be flagged in the scanning to=
ols.=C2=A0 Am I missing something?.=C2=A0=C2=A0
Thanks in advance for any insights,Mark Guisinger
From: Birkir R. Gunnarsson
Date: Fri, May 22 2020 11:26AM
Subject: Re: table headers attribute question
← Previous message | No next message
Your table has a number of issues.
1. The cell at the top needs to be a caption, if you hvae a header
cell that spans the whole table it gets announced with any other
header cells and it makes the table near impossible to understand, use
the <caption> element for table titles.
Outside of that, you can use the headers attribute if the target is a
<th> cell and has a unique id, you can't use it if the header cell is
just a <td> (or at least this was the requirement in the last HTML5
spec I saw).
If a header cell spans multiple columns use scope="colgroup" and a
corresponding colspan attribute.
If it spans multiple rows, use scope="rowgroup" and a corresponding
Also, if possible, avoid having header cells in the middle of your
table, for that, try to break it up into a series of smaller tables.
For your particular design you probably should use the headers
attribute, but try to break it down instead.
You can use the ANDI tool from the Social Security Administration to
explore tables manually to see header cells and such.
On 5/21/20, Mark Guisinger via WebAIM-Forum
< = EMAIL ADDRESS REMOVED = > wrote:
> All,I have been looking at different accessibility scanning tools, WAVE,
> Deque, and others.Â I have noticed that not all of them point out a complex
> table with multiple levels of headers point out that the code should use
> scope or the headers attribute tom which one would be required to pass
> 1.3.1: Info and relationships.Â I have attached a sample table where one
> section header 2 portion has the correct headers attribute.Â I would think
> that the other parts of the table would be flagged in the scanning tools.
> Am I missing something?.
> Thanks in advance for any insights,Mark Guisinger
Work hard. Have fun. Make history.