Website accessibility Hints and Tips
Presenting Information in tables
Tables used to represent tabular data - such as job listings need to be made accessible for screen readers. Screen readers read left to right, a line at a time in their standard mode, which means they can often understand simple tables of information, but for more complex data they reply on the tables being marked up in the relevant HTML code.
In the example table on this page - Fig A - you need to do two main things to make it accessible.
Firstly, ensure that the column headers - e.g. Job, Job Ref, Area and Type are labelled properly in HTML using the Table header tag TH as illustrated in fig B .
| Job | Job Ref | Area | Type | Salary | Location |
|---|---|---|---|---|---|
| Mechanical Design Engineer | Lee148Eng994 | Engineering | Full-Time | £ 26,000 - £ 28,000 | Leeds, UK |
| Financial Accountant | Liv912Acc456 | Finance | Full-Time | £ 26,000 - £ 28,000 | Liverpool, UK |
| Senior Customer Advisors - Retail Sales | Swn856Cus229 | Customer Services / Sales and Marketing | Full-Time | £ 13,900 - £ 15,000 | Swansea, UK |
| Team Leader - Kids Klub Nursery | Man234 Nur435 | Facilities | Full-Time | £16,000 | Didsbury, Manchester, UK |
Fig A - Typical job search results in a table
Secondly, you need to explicitly associate each data item with its relevant column header - for example in the first row the data item 'Mechanical Design Engineer' needs to be linked to its corresponding column header 'Job'. There are a number of techniques to do this; one of the most common is the use of the 'headers' attribute. If you look at Fig B the 'Job' column header has an extra tag - id="c1" and you will see that the 'Mechanical Design Engineer' table data cell TD has a corresponding headers ="c1" tag, as you can see the common link is the c1 text - you can replace this with anything you want as long as it is consistent.
<TABLE border="1" cellspacing="0" class="jobs" summary="job results" cellpadding="0">
<TR>
<TH id="c1" align="left" class="results"> <STRONG>Job</STRONG></TD>
<TH id="c2" align="left" class="results"><STRONG>Job Ref</STRONG></TD>
<TH id="c3" align="left" class="results"><STRONG>Area</STRONG></TD>
<TH id="c4" align="left" class="results"><STRONG>Type</STRONG></TD>
<TH id="c5" align="left" class="results"><STRONG>Salary</STRONG></TD>
<TH id="c6" align="left" class="results"><STRONG>Location</STRONG></TD>
</TR>
<TR>
<TD headers ="c1"> <a href=" job1.htm "> Mechanical Design Engineer </a> </td>
<TD headers ="c2"> Lee148Eng994 </td>
<TD headers ="c3"> Engineering </td>
<TD headers ="c4"> Full-Time </td>
<TD headers ="c5"> £ 26,000 - £ 28,000 </td>
<TD headers ="c6"> Leeds, UK </td>
</TR> <TR> <TD headers ="c1"> <a href=" job2.htm "> Financial Accountant </a> </td>
<TD headers ="c2"> Liv912Acc456 </td>
<TD headers ="c3"> Finance </td> <TD headers ="c4"> Full-Time </td>
<TD headers ="c5"> £ 26,000 - £ 28,000 </td>
<TD headers ="c6"> Liverpool, UK </td>
</TR>
Fig B - HTML code for accessible Job listings in Fig a
More guidance can be found in the Macromedia e-recruitment paper and the W3C paper on Accessible HTML techniques.