Skip header information, go directly to contentWeb Accessibility Center home page. Web-AIM tutorials. Web Accessibility in Mind (Web-AIM) home page.

Return to Tutorials List

How to Create Accessible Tables

skip the list of pages in this document| page 1 | page 2 | page 3 | Next Page

Here is a summary of the techniques for creating accessible tables:

Creating Accessible Tables

  • Layout Tables:
    1. Ensure that the contents of the table make sense when linearized (i.e. when removed from the table).
    2. Do not use table headers (<th> tags) for visual effect.
    3. Use proportional sizing, rather than absolute sizing.
    4. Use the simplest table configuration possible.
  • Data Tables
    1. Designate row and column headers using the <th> tag.
    2. Associate the data cells with the appropriate headers.
    3. Use proportional sizing, rather than absolute sizing.
    4. Provide names or titles for data tables using the <caption> tag.
    5. Provide summaries using the summary attribute.
    6. Avoid spanned rows or columns.
    7. Avoid tables with more than two levels of row and/or column headers.

 

The uses of tables

There are two basic uses for tables on the Web: as data tables, and as layout tables. The original intended use of HTML tables was for data. A table is a data table when row headers, column headers, or both are present. For example, here is a simple data table:

Shelly's Daughters
Name Age Birthday
Jackie 5 April 5
Beth 8 January 14

In practice, tables are perhaps most commonly used for page layout. Layout tables do not have logical headers that can be mapped to information within the table cells. Here is a simple layout table:

 
  Benjamin Franklin sittting at his desk, reading

"Those who love deeply never grow old; they may die of old age, but they die young."

"Hide not your talents. They for use were made. What's a sundial in the shade."

"Blessed is he who expects nothing, for he shall never be disappointed."

"If a man empties his purse into his head, no man can take it away from him. An investment in knowledge always pays the best interest."

"When you're finished changing, you're finished."

-- Benjamin Franklin

 
 

Let's take a closer look at the techniques for making these two types of tables accessible.

skip the list of pages in this document| page 1 | page 2 | page 3 | Next Page

 

Top of Page || Return to Tutorials List

This Tutorial is reproduced on this site with the kind permission of WebAIM. For additional information and resources on web accessibility please visit http://www.webaim.org.

© Copyright 2000-2001 WebAIM. All Rights Reserved. Terms of Use.