Working Papers

Issues for Statistical Agencies:
Implementing Section 508 on Agency Web Sites

FedStats White Paper No. 1, January 2004

Text Description for Figure 2: Complex Table Example

The following table presents data associated with up to three levels of column headers and three levels of row stubs.

Table 5
Characteristics of homicides in 1985
Agency by State Number of
homicide
victims
Percent of homicide victims by --
Race Gender
White Black Other Male Female
Alabama
City
Birmingham Policy Department 97 20.8 79.2 0 83.3 16.7
Arizona
City
Phoenix Policy Department 89 85.2 11.4 3.4 71.6 28.4
Tucson Police Department 32 87.5 9.4 3.1 71.9 28.1
California
City
Fresno Policy Department 46 78.3 17.4 4.3 68.1 31.9
Long Beach Policy Department 63 68.3 27.0 4.8 71.4 28.6
County
Kern County Sheriff Department 34 81.6 13.2 5.3 73.2 26.8
 

Sample code for first level of column headers:

<tr>
  <th class="stubHeading" rowspan="3" id="agency">Agency by State</th>
  <th rowspan="3" id="number">Number of homicide victims</th>
  <th colspan="5" id="percent">Percent of homicide victims by --</th>
</tr>

Sample code for the data cell that contains 20.8:

<td headers="AL City Birm percent race w">20.8</td>

This code demonstrates the use of the "percent" value, assigned to an id attribute in a column header, as part of a headers attribute assigned to a specific data cell.

Return to paper.