Link to home
Start Free TrialLog in
Avatar of Richard Quadling
Richard QuadlingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Why does TFOOT fail w3c validation?

Why does http://validator.w3.org/ fail this simple HTML?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Title</title>
 </head>
 <body>
  <table>
   <caption>Caption</caption>
   <thead>
    <tr>
     <th>Head</th>
    </tr>
   </thead>
   <tbody>
    <tr>
     <td>Body</td>
    </tr>
   </tbody>
   <tfoot>
    <tr>
     <td>Foot</td>
    </tr>
   </tfoot>
  </table>
 </body>
</html>

What am I missing?
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ignore my first line
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd">

I use this line to parse locally
for in the browser you should keep your first line

cheers

Geert
Avatar of Richard Quadling

ASKER

Well. So it does! DOH! What a LOT of templates I have to change.

Hmm

My "footers" are calculated after the details are sent (counts, totals, etc). So for I only what know the "footer" is after the "body". So, probably better for me to drop the <tfoot></tfoot> tag and just make them part of the <tbody>.

And in truth, I wouldn't want the totals at the bottom of every page if printed, so another reason to make them <tbody>.

Thanks.