Re: th scope attribute



In article <6aa0sqF357aaqU1@xxxxxxxxxxxxxxxxxx>,
JD <tin_rat@xxxxxxxxxxxxxxxxx> wrote:

Is the <th> scope attribute needed for simple tables? For example, will
the following be clear for a wide range of visitors?

<table>
<tr><th>Make</th><th>Year</th></tr>
<tr><td>Ford </td><td>1987</td></tr>
<tr><td>Audi </td><td>2000</td></tr>
</table>

Or should I do:

<table>
<tr><th scope="col">Make</th><th scope="col">Year</th></tr>
<tr><td>Ford </td><td>1987</td></tr>
<tr><td>Audi </td><td>2000</td></tr>
</table>


Do the former. This does not apply in your case:

For a given header cell, the scope attribute tells the user agent the
data cells for which this header provides information. Authors may
choose to use this attribute instead of headers according to which is
more convenient; the two attributes fulfill the same function. The
headers attribute is generally needed *when headers are placed in
irregular positions with respect to the data they apply to*.

--
dorayme
.