XHTML 1.1 strict validation of <THEAD> and <TFOOT>

W

Woolly Mittens

S

Steve Pugh

Woolly Mittens said:
I tried validating my gallery page using the w3c validator.
http://validator.w3.org/check?uri=http://www.woollymittens.nl/content/gallery/index.asp

To my surprise it informed me that <tfoot> wasn't valid XHTML 1.1 strict,
while it is in the document definition:
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_tablemodule

My <thead> tag apparently was valid, while my <tfoot> wasn't.

tfoot must come _before_ tbody, not after it. This causes problems
with browsers that don't support tfoot properly as they will display
the contents of the footer before the body.

So either have a valid page which may cause problems in older browsers
or an invalid page which may cause problems in browsers that apply the
standards exactly. Not using tfoot at all may be the best compromise.

BTW, there is no XHTML 1.1 strict. XHTML 1.1 exists in only one
version. The restriction on where tfoot can go is in all versions of
(x)html that include tfoot.

Steve
 
S

SteW

Woolly said:
I tried validating my gallery page using the w3c validator.
http://validator.w3.org/check?uri=http://www.woollymittens.nl/content/gallery/index.asp

To my surprise it informed me that <tfoot> wasn't valid XHTML 1.1 strict,
while it is in the document definition:
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_tablemodule

My <thead> tag apparently was valid, while my <tfoot> wasn't.

I would appreciate it if anyone could clarify the matter.

Greetings,
Maurice van Creij

"TFOOT must appear before TBODY within a TABLE definition so that user
agents can render the foot before receiving all of the (potentially
numerous) rows of data."

http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3

Ste W
 
W

Woolly Mittens

Thanks for the replies everybody.

But I still think it's odd to put the footer before the body.
Wouldn't that mess up the reading order in text-browsers?
 
W

Woolly Mittens

brucie said:
Crosspost, don't multipost

The world would be a better place if you would answer questions, instead of
playing netiquette police with a holier than thou attitude.
 
B

brucie

The world would be a better place if you would answer questions,

how do people know the question hasn't already been answered in another
group and they would just be wasting their time repeating what someone
else has already said?
instead of playing netiquette police

you'll never learn if you're never told
 
T

Toby A Inkster

Woolly said:
But I still think it's odd to put the footer before the body.

Yeah, it is odd, but that's how it's done.
Wouldn't that mess up the reading order in text-browsers?

Yep -- but many text browsers don't understand tables anyway.
 
T

Toby A Inkster

Woolly said:
The world would be a better place if you would answer questions, instead of
playing netiquette police with a holier than thou attitude.

But if you multipost it means that different people will answer you in
different newsgroups, thereby creating extra work for those people kind
enough to answer your questions. Multiposting is plain inconsiderate.
Crosspost instead.
 
D

David Dorward

Woolly said:
But I still think it's odd to put the footer before the body.
Wouldn't that mess up the reading order in text-browsers?

Only if the text browser doesn't understand HTML 4 or newer.
 
W

Woolly Mittens

Toby A Inkster said:
But if you multipost it means that different people will answer you in
different newsgroups, thereby creating extra work for those people kind
enough to answer your questions. Multiposting is plain inconsiderate.
Crosspost instead.

I'm sure your reason is valid. But if you don't answer my question, you have
no business policing me.
 
W

William Tasso

Woolly said:
I'm sure your reason is valid. But if you don't answer my question,
you have no business policing me.

I for one am grateful when a multi-post is identified. It means that the
issue has likely been addressed elsewhere and there is little point in me
expending any effort on it.

Is that clearer?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top