J.Karlsson
02-24-2003, 04:05 AM
Here's a question on use of tables for TABULAR data for once...
Below are the first three rows of a table I've got. The first two rows are supposed to be headers, and that's where I needs some advice. Should I use the <th> tag instead of <td> in the two top rows? Or am I only allowed to use <th> in the first row?
<table class="text" cellspacing="1" cellpadding="3">
<tr class="fet">
<td colspan="3">&nbsp;</td>
<td valign="bottom" colspan="2"><abbr title="FA Premier League">League</abbr></td>
<td valign="bottom" colspan="2">FA Cup</td>
<td valign="bottom" colspan="2"><abbr title="Worthington (League) Cup">FL Cup</abbr></td>
<td valign="bottom" colspan="2"><abbr title="European competitions">Europe</abbr></td>
<td valign="bottom" colspan="2"><abbr title="FA Community Shield">Com.Shld</abbr></td>
<td valign="bottom" colspan="2">Total</td>
</tr>
<tr class="svartbgtext">
<td valign="top"><abbr title="Shirt number">No</abbr></td>
<td valign="top">Player</td>
<td valign="top">Position</td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
</tr>
<tr class="gulbgtext">
<td valign="top" align="right">1</td>
<td valign="top"><a href="/players/s/seaman_da/" class="gulbglank">David Seaman</a></td>
<td valign="top"><abbr title="Goalkeeper">G</abbr></td>
<td valign="top" align="right">24</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">2</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">7</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">1</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">34</td>
<td valign="top" align="right">-</td>
</tr>
Below are the first three rows of a table I've got. The first two rows are supposed to be headers, and that's where I needs some advice. Should I use the <th> tag instead of <td> in the two top rows? Or am I only allowed to use <th> in the first row?
<table class="text" cellspacing="1" cellpadding="3">
<tr class="fet">
<td colspan="3">&nbsp;</td>
<td valign="bottom" colspan="2"><abbr title="FA Premier League">League</abbr></td>
<td valign="bottom" colspan="2">FA Cup</td>
<td valign="bottom" colspan="2"><abbr title="Worthington (League) Cup">FL Cup</abbr></td>
<td valign="bottom" colspan="2"><abbr title="European competitions">Europe</abbr></td>
<td valign="bottom" colspan="2"><abbr title="FA Community Shield">Com.Shld</abbr></td>
<td valign="bottom" colspan="2">Total</td>
</tr>
<tr class="svartbgtext">
<td valign="top"><abbr title="Shirt number">No</abbr></td>
<td valign="top">Player</td>
<td valign="top">Position</td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
<td valign="top"><abbr title="Appearances">App</abbr></td>
<td valign="top"><abbr title="Goals">Gls</abbr></td>
</tr>
<tr class="gulbgtext">
<td valign="top" align="right">1</td>
<td valign="top"><a href="/players/s/seaman_da/" class="gulbglank">David Seaman</a></td>
<td valign="top"><abbr title="Goalkeeper">G</abbr></td>
<td valign="top" align="right">24</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">2</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">7</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">1</td>
<td valign="top" align="right">-</td>
<td valign="top" align="right">34</td>
<td valign="top" align="right">-</td>
</tr>