Richard Quadling
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?
<!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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
welcome
<!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