|
Posted by Michael Fesser on 01/06/08 17:24
..oO(richard)
>On Sun, 6 Jan 2008 08:22:38 -0800 (PST), TonyV <kingskippus@gmail.com>
>wrote:
>
>>My question is pretty simple. What if you want a table with just a
>>thead and tbody section, but not with a tfoot section? I don't
>>understand why I *must* have a cell defined in up to two sections (in
>>this case, the tfoot section), cells which will be completely blank,
>>which I suppose means I'll have to use some CSS to make sure it's not
>>displayed, instead of just not having the section.
>>
>>Is there a standard practice for what to do if you have a thead and
>>tbody but not a tfoot?
>
>Nothing says it has to have content.
The DTD does (taken from XHTML 1.0):
<!ELEMENT thead (tr)+>
<!ELEMENT tfoot (tr)+>
<!ELEMENT tbody (tr)+>
At least one row is required in each row group.
And the 'tr' element must contain at least one cell:
<!ELEMENT tr (th|td)+>
>The rules are merely looking for
>the tags.
><tfoot></tfoot>
Invalid code.
Micha
[Back to original message]
|