Data Tables

Manchester Digital Web Accessibility Group
Dr David Kreps


Agenda


The WCAG and Tables

Tabular Information


The WCAG and Tables

G3 – Using markup properly


The WCAG and Tables

G5 – Creating tables


Linear Tables

Linearisation problems


Linear Tables


Linear Tables

OR

How to Linearise


Linear Tables


The WCAG and Tables

fq note:

G5.1 – Simple data tables


The WCAG and Tables

fq note:

G5.2 – Complex data tables


The WCAG and Tables

<table border = "1">
<thead>
<tr>
<td>This text is in the THEAD</td>
</tr>
</thead>
<tfoot>
<tr>
<td>This text is in the TFOOT</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>This text is in the TBODY</td> 
</tr>
</tbody>
</table>

THEAD, TFOOT and TBODY


The WCAG and Tables

fq note:

G5.3 – A last note on layout tables


The WCAG and Tables

fq note:

G5.4 and 4.5 – Structural markup and summaries


The WCAG and Tables

G5.6 – Abbreviations


Real Data Tables

<table border="0" summary="This table lays out the location and opening times of PC Cluster Rooms">

<caption>PC Cluster Rooms</caption>

<tr><th scope="col" id="header1">Room</th>

<th scope="col" id="header2">Building</th>

<th scope="col" id="header3" abbr="open">Opening Times</th></tr>

<tr>

<th scope="row" headers="header1">OG10</th>

<td headers="header2">Dover Street</td>

<td headers="header3">8:30 - 6:30</td>

</tr>

<tr>

<th scope="row" headers="header1">DP3</th>

<td headers="header2">Dover Street</td>

<td headers="header3">8:30 - 6:30</td>

</tr></table>

Caption: PC Cluster Rooms. Summary: This table lays out the location and opening times of PC Cluster Rooms.
Room: OG10 Building: Dover Street Open: 8.30 dash 6.30
Room: DP3 Building: Dover Street Open: 8.30 dash 6.30

Example


Real Data Tables

<table border="1">
<tr>
<th>Year</th>
<th>Quantity</th>
</tr>
<tr>
<td>2003</td>
<td>50</td>
</tr>
<tr>
<td>2004</td>
<td>100</td>
</tr>
<tr>
<td>Total</td>
<td>150</td>
</tr>

</table>

Full Structural Markup – Stage 1


Real Data Tables

<table border="1">
<caption>Total Sales of Thingamajigs</caption>

<thead>
<tr>
<th>Year</th>
<th>Quantity</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Total</td>
<td>150</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>2003</td>
<td>50</td>
</tr>
<tr>
<td>2004</td>
<td>100</td>
</tr>
</tbody>

</table>

Full Structural Markup – Stage 2


Real Data Tables

<table border="1">
<caption>Total Sales of Thingamajigs</caption>

<colgroup>
<col />
<col />
</colgroup>

<thead>
<tr>
<th>Year</th>
<th>Quantity</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Total</td>
<td>150</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>2003</td>
<td>50</td>
</tr>
<tr>
<td>2004</td>
<td>100</td>
</tr>
</tbody>

</table>

Full Structural Markup – Stage 3


Real Data Tables

<table border="1">
<caption>Total Sales of Thingamajigs</caption>

<colgroup>
<col />
<col />
</colgroup>

<thead>
<tr>
<th>Year</th>
<th>Quantity</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Total</td>
<td>150</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>2003</td>
<td>50</td>
</tr>
<tr>
<td>2004</td>
<td>100</td>
</tr>
</tbody>

</table>

Full Structural Markup – Stage 4


Table Mark-Up

Summary