RE: Accessible tables

by "John Foliot - Another 4:00 AM Web Thing" <foliot(at)fouram.com>

 Date:  Mon, 25 Feb 2002 18:20:33 -0500
 To:  "Rick Nelson/R6/USDAFS" <rhnelson(at)fs.fed.us>
 Cc:  "Aware-Techniques" <aware-techniques(at)hwg.org>
 In-Reply-To:  fed
  todo: View Thread, Original
Rick,

>From what I see here, you have exceeded the 508 spec.  Congrats!  You might
want to add the <TBODY> element, like so:

<table summary="Conditions below 800 feet" border="1"
cellspacing="2" cellpadding="4">
<thead>
	<tr>
		<th scope="col">Condition</th>
		<th scope="col">Common Name</th>
		<th scope="col"><em>Scientific Name</em></th>
		<th scope="col">Habitat</th>
	</tr>
</thead>
<tbody>
	<tr>
		<th scope="row">flower bud</th>
		<td>myrtle, Oregon</td>
		<td><em>Umbellularia californica</em></td>
		<td>riparian</td>
	</tr>
</tbody>
<tbody style="background-color: Yellow;">
	<tr>
		<th rowspan="3" scope="rowgroup">early bloom</th>
		<td>hazelnut, California</td>
		<td><em>Corylus cornus var. californica</em></td>
		<td>woods</td>
	</tr>

	<tr>
		<td>saxifrage, Howell's</td>
		<td><em>Saxifraga howellii</em></td>
		<td>rock bluffs</td>
	</tr>

	<tr>
		<td>snow queen</td>
		<td><em>Synthyris reniformis</em></td>
		<td>forest</td>
	</tr>
</tbody>
<tbody>
	<tr>
		<th rowspan="2" scope="rowgroup">full bloom</th>
		<td>alder, white</td>
		<td><em>Alnus rhombifolia</em></td>
		<td>riparian</td>
	</tr>

	<tr>
		<td>bearbrush</td>
		<td><em>Garrya fremontii</em></td>
		<td>openings</td>
	</tr>
</tbody>
</table>

While not obligatory it is part of the spec and would allow you to specify
styles to various <tbody>'s using CSS (try the code).

But it looks good to me.

JF



> -----Original Message-----
> From: owner-aware-techniques(at)hwg.org
> [mailto:owner-aware-techniques(at)hwg.org]On Behalf Of Rick
> Nelson/R6/USDAFS
> Sent: February 25, 2002 5:29 PM
> To: aware-techniques(at)hwg.org
> Subject: Accessible tables
>
>
> This is a table from a page on our web site that I have tried to make
> accessible using "scope".  As far as I have been able to determine this
> would meet the requirements of section 508. Comments?
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> <html>
> <head>
> <title>Table example</title>
> </head>
> <body>
> <table summary="Conditions below 800 feet" border="1"
> cellspacing="2" cellpadding="4">
> <tr>
> <th scope="col">Condition</th>
> <th scope="col">Common Name</th>
> <th scope="col"><em>Scientific Name</em></th>
> <th scope="col">Habitat</th>
> </tr>
>
> <tr>
> <th scope="row">flower bud</th>
> <td>myrtle, Oregon</td>
> <td><em>Umbellularia californica</em></td>
> <td>riparian</td>
> </tr>
>
> <tr>
> <th rowspan="3" scope="rowgroup">early bloom</th>
> <td>hazelnut, California</td>
> <td><em>Corylus cornus var. californica</em></td>
> <td>woods</td>
> </tr>
>
> <tr>
> <td>saxifrage, Howell's</td>
> <td><em>Saxifraga howellii</em></td>
> <td>rock bluffs</td>
> </tr>
>
> <tr>
> <td>snow queen</td>
> <td><em>Synthyris reniformis</em></td>
> <td>forest</td>
> </tr>
>
> <tr>
> <th rowspan="2" scope="rowgroup">full bloom</th>
> <td>alder, white</td>
> <td><em>Alnus rhombifolia</em></td>
> <td>riparian</td>
> </tr>
>
> <tr>
> <td>bearbrush</td>
> <td><em>Garrya fremontii</em></td>
> <td>openings</td>
> </tr>
> </table>
> </body>
> </html>
>
>
>
> Rick Nelson
> Umpqua National Forest
>
>
> Continual vigilance is the price of accuracy.
>
>
>
>
>

HWG: hwg-basics mailing list archives, maintained by Webmasters @ IWA