Topic: XHTML 1.0 and thead, tfoot, and tbody Pages that link to <a href="https://ozoneasylum.com/backlink?for=23173" title="Pages that link to Topic: XHTML 1.0 and thead, tfoot, and tbody" rel="nofollow" >Topic: XHTML 1.0 and thead, tfoot, and tbody\

 
Author Thread
Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

IP logged posted posted 09-04-2004 02:12 Edit Quote

Greets

I've read that if you use thead, you're supposed to use thead, tfoot, and tbody, and that they must be used in that order.

I've seen LOTS of code where there was no tfoot, and omitting it validates fine (interesting).

I'm curious as to what you guys think about using/not using tfoot and the like.

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

IP logged posted posted 09-04-2004 02:56 Edit Quote

I often find that I'm just trying to "make up something to fill the tfoot" - I rarely have a use for it. I'm glad to hear it validates without it!

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

IP logged posted posted 09-04-2004 03:47 Edit Quote

Lately I've been just doing something like

<tfoot style="display: none;"><tr><td></td></tr></tfoot>

just to make sure I'm following the rules......

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 09-04-2004 14:14 Edit Quote
quote:
Pugzly said:

Lately I've been just doing something like

<tfoot style="display: none;">&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tfoot&gt;

just to make sure I'm following the rules......


What rules? If you don't have a need for it -- leave it out.

liorean
Nervous Wreck (II) Inmate

From: Umeå, Sweden
Insane since: Sep 2004

IP logged posted posted 09-04-2004 16:30 Edit Quote

Look at the DTD:

code:
<!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>


That means the following:


A table element MUST contain, in order as specified:
- Zero or one caption elements
- EITHER zero or more col elements OR zero or more colgroup elements
- Zero or one thead elements
- Zero or one tfoot elements
- EITHER one or more tbody elements OR one or more tr elements

(Edited by liorean on 09-04-2004 17:40)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 09-04-2004 16:35 Edit Quote

isn't it
- EITHER one or more tbody elements OR one or more tr elements ?

liorean
Nervous Wreck (II) Inmate

From: Umeå, Sweden
Insane since: Sep 2004

IP logged posted posted 09-04-2004 17:40 Edit Quote

Yeah, that it is.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu