html5 - Getting accessibility right for HTML tables -
I have a data table used in a page that needs to meet the AA access standards, but I am being told by my client that table basic accessibility standards are not available.
My client is using an online service that throws all kinds of errors, so I took an equivalent examination using the second service from Total Velliator, which suggested that everything was ok. Clearly, besides this I have read many guidelines, but I still do not think that I have enough clarity to return to the client and make them convinced or I need to decide.
As far as I understand & lt; Summary & gt;
has been disliked in HTML5, although W3C standards may not be necessary.
The only thing I can think of is to add an area & lt; Th & gt;
or possibly & lt; Td>
on elements, but as long as I can tell by the documentation on this (), in this context only one & lt; Th & gt;
should work.
I've included some example markup below and given any indications:
& lt; Table & gt; & Lt; Title & gt; This caption is & lt; / Caption & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Day & lt; / Th & gt; & Lt; Th & gt; Time & lt; / Th & gt; & Lt; Th & gt; Lessons & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td rowspan = "3" & gt; & Lt; Strong & gt; Monday & lt; / Strong> & Lt; / Td> & Lt; Td> 19: 00 - 19: 45 & lt; / Td> & Lt; Td> Lesson 1 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 18: 00 - 19:00 & lt; / Td> & Lt; Td> Lesson 2 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 19: 00 - 20: 00 & lt; / Td> & Lt; Td> Lesson 3 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td rowspan = "4" & gt; & Lt; Strong & gt; Tuesday & lt; / Strong> & Lt; / Td> & Lt; Td> 09: 15 - 09: 45 & lt; / Td> & Lt; Td> Lesson 1 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 17: 45 - 18: 15 & lt; / Td> & Lt; Td> Lesson 2 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 18: 15 - 18: 45 & lt; / Td> & Lt; Td> Lesson 3 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 19: 00 - 20: 00 & lt; / Td> & Lt; Td> Lesson 4 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td rowspan = "2" & gt; & Lt; Strong & gt; Wednesday & lt; / Strong> & Lt; / Td> & Lt; Td> 18: 00 - 19:00 & lt; / Td> & Lt; Td> Lesson 1 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 19: 00 - 20: 00 & lt; / Td> & Lt; Td> Lesson 2 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td rowspan = "4" & gt; & Lt; Strong & gt; Thursday & lt; / Strong> & Lt; / Td> & Lt; Td> 07: 30 - 08: 00 & lt; / Td> & Lt; Td> Lesson 1 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 18: 00 - 19:00 & lt; / Td> & Lt; Td> Lesson 2 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 19: 15 - 19: 45 & lt; / Td> & Lt; Td> Lesson 3 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 19: 45 - 20:15 & lt; / Td> & Lt; Td> Lesson 4 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td rowspan = "3" & gt; & Lt; Strong & gt; Friday & lt; / Strong> & Lt; / Td> & Lt; Td> 07: 15 - 07: 45 & lt; / Td> & Lt; Td> Lesson 1 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 15: 30 - 17: 00 & lt; / Td> & Lt; Td> Lesson 2 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> 18: 00 - 19:00 & lt; / Td> & Lt; Td> Lesson 3 & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt;
day cells:
& lt; Td rowspan = "3" & gt; & Lt; Strong> Monday & lt; / Strong> & Lt; / TD & gt; The headers are
and the th
elements should be used instead of td
:
& Lt; Th scope = "row group" rowspan = "3" & gt; Monday & lt; / Th & gt;
And since you have two axis tables, scope
should be added to the header in thead
: <> pre & lt; Thead & gt; & Lt; TR & gt; & Lt; Th scope = "colonel" & gt; Day & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Time & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; Text & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt;
Look for explanations.
Comments
Post a Comment