On Sun, 29 Jan 2006 11:04:07 -0000, Joshua Street <[EMAIL PROTECTED]> wrote:

Not very comprehensible... The solution would be to use <td> instead:

That's what we have stylesheets for. It's trivial to change the text
alignment of TH elements :-) TH strikes me as being semantically more
sound, particularly if you give them ID's and set the headers
attribute in your corresponding TD cells accordingly.

The whole point was to make it more usable in browsers with no CSS support.

But you can also give ID-s to TD elements and reference those with headers
attribute:

<tr>
  <td id="header-1"><span>1 </span>Fruits</td>
  <td headers="header-1">Add</td>
  <td headers="header-1">Delete</td>
  <td headers="header-1">Edit</td>
</tr>

Actually, according to HTML 4.01 secification, using TD for headers is
quite OK (http://www.w3.org/TR/html4/struct/tables.html#h-11.2.6):

  "TH is for headers, TD for data, but for cells acting as both use TD"


Rene
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to