These instructions apply to data tables, not to the use of tables for layout. Do not use tables for layout unless the table makes sense when linearized [WAI Priority 2].
Simple tables are those where the type of information found in each row and column is constant.
Use tags TH to identify headers and
TD to identify data cells.
Or, use TD SCOPE="col" for column
headers and TD SCOPE="row" for row
headers.
<table border="1"> |
|
For data tables that have two or more logical levels of row or column headers
The following example is lifted from the W3C Techniques for Web Content Accessibility Guidelines 1.0 data tables section
This example shows how to associate data cells (created with
TD) with their corresponding headers by means of the
"HEADERS" attribute. The "headers" attribute
specifies one or more header cells (row and column labels)
associated with the current data cell. This requires each header
cell to have an "ID" attribute.
|
|
The id and headers approach will work for even the most complex
tables, but it can be mind-boggling to code this sort of thing by
hand. Finding an appropriate tool would be extremely helpful here.
The HTML 4 rowgroup, colgroup and
axis attributes discussed in the WAI guidelines are
not implemented by screen readers.
The web site accessify.com lets you build accessible tables online. DreamWeaver provides facilities for creating accessible tables, which can be enhanced with 3rd party module LIFT. Specialized accessibility checking tools such as PageScreamer may also have this capability.
slide 37
|
"Mastering a Web Site" online course Created and maintained by Lorna Schmid and David Boldt. http://water.usgs.gov/usgs/training/webmaster/accessible_table.html Last modified: Mon Feb 5 17:53:51 EST 2007 |