Is this complex table properly coded?

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 UTC