Skip header information, go directly to content

mwas standard Standard 8 -- Tables.
Row and column headers shall be identified for data tables .

Examples:
8.1 -- Tables used only for layout do not have header rows or columns.
8.2 -- In data tables, column and row headers are identified using the <th> tag.

Table Markup -- Dos and Don'ts

See also: Standard 9 -- Table Headers

Do Don't

Create layout tables with no summary, no caption, and no column or row headers.

Markup layout tables in the same way as data tables.

Why: Layout tables are a special kind of table used to control aesthetics rather than convey information. Adding information, such as a summary or caption, to a layout table only confuses users. If layout tables do not have data table markup, they are typically ignored by screen readers, which instead read the content rather than the structure of the table.

How: For layout tables, do not include the "summary" attribute and do not use the <th> element.

Do Don't

Create row and column headers for data tables.

Use data tables that do not clearly identify the contents of each column and row.

Why: When data tables do not have row and column headers, users of screen readers can easily get "lost" inside a table because it may be impossible to associate a particular cell that a screen reader is reading with the corresponding column headings and row names. When coded properly, a screen reader will help orient the user by identifying the appropriate row or column header before reading the data within a particular cell.

How: The first row of each table should include column headings. Typically, these column headings are inserted in <TH> tags, although <TD> tags can also be used, along with the scope="col" attribute. Similarly, the each cell in the first column of every data table should include uniquely identifying information about the content of each row in the table. Each of the cells in that first column are created by either <TH> or <TD>. Include the following attribute in these cells: scope="row".

Get more help with tables, visit the Access Board's Section 508 information on tables.

previousPrevious Nextnext

Top of Page || Return to Index
View/print in PDF format. (Acrobat Reader required.)

Ohio State University