W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2002

Is this complex table properly coded?

From: RUST Randal <RRust@COVANSYS.com>
Date: Mon, 2 Dec 2002 10:38:26 -0500
Message-ID: <1A729C6059E7CD4CA1DFE3985E600421993DB7@fth-ex02.CVNS.corp.covansys.com>
To: "WAI (w3c-wai-ig@w3.org)" <w3c-wai-ig@w3.org>

Typically I avoid complex tables.  I find that if the table is complex, then
there is usually a problem with the way that the data is being presented.
However, I need to add markup rules for complex tables into my style guide.
Since I don't use complex tables, creating one from scratch is a little
daunting, as I'm not sure that I'm using my ID and HEADER attributes
correctly.

<table border="1" cellpadding="2" cellspacing="0" rules="rows"
summary="Popular movies, the director, star and co-star." width="100%">
	<caption>Movies</caption>
	<colgroup>
		<col span="2" width="20%" />
		<col width="60%" />
	</colgroup>
	<thead>
		<tr> 
			<th id="title">Title</th>
			<th id="director">Director</th>
			<th id="cast" colspan="2">Cast</th>
		</tr>
		<tr> 
			<th>&nbsp;</th>
			<th>&nbsp;</th>
			<th id="star">Star</th>
			<th id="costar">Co-Star</th>
		</tr>
		<tr>&nbsp;</tr>
	</thead>
	<tbody>
		<tr>
			<td headers="title">Star Wars</td> 
			<td headers="director">George Lucas</td>
			<td headers="cast star">Mark Hamill</td>
			<td headers="cast costar">Harrison Ford</td>
		</tr>
	</tbody>
</table>

----------
Randal Rust
Covansys, Inc.
Columbus, OH 
Received on Monday, 2 December 2002 10:39:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:07 GMT