|
||||
Data Table Headers:(g) Row and column headers shall be identified for data tables and (h) Markup shall be used to associate data cells and header cells for data tables that have two or more logical levels of row or column headers. Large tables of data can be difficult to interpret if a person is using a non-visual means of accessing the web. 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. For instance, assume that a salary table includes the salaries for federal employees by grade and step. Each row in the table may represent a grade scale and each column may represent a step. Thus, finding the salary corresponding to a grade 9, step 5 may involve finding the cell in the ninth row and the fifth column. For a salary chart of 15 grade scales and 10 steps, the table will have at least 150 cells. Without a method to associate the headings with each cell, it is easy to imagine the difficulty a user of assistive technology may encounter with the table. Here is a table with both row and column headers:
Here is the code used to define this table, including headers:
As a screen-reader, like JAWS, reads this table, each data cell can be identified by either row or column header. For instance, when reading across row two, JAWS reads the row header: "Student Lori Badia, academic level, M.A. completed; current program, Ph.D. English." When reading down, JAWS reads the row header for each cell. For instance, when reading column three: "Lori Badia, Ph.D. English; Susan Bailey, M.B.A., Alicia Baker, Dept. of English." Row and column headers help insure that data tables can be understood. |