473,806 Members | 2,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

I tried validating my gallery page using your validator.
http://validator.w3.org/check?uri=ht...ry%2Findex.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-modulariz...#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
Jul 20 '05 #1
11 6049
Woolly Mittens <wm******@hotma ilz.com> wrote:
I tried validating my gallery page using your validator.
http://validator.w3.org/check?uri=ht...ry%2Findex.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-modulariz...#s_tablemodule


The TFOOT element needs to come before the TBODY element. Tables should
contain, in the following order:

- an optional CAPTION, followed by
- optional COL and COLGROUP elements, followed by
- an optional THEAD element, followed by
- an optional TFOOT element, and then
- one or more TBODY elements

See also http://www.htmlhelp.com/reference/ht...les/table.html

(This hasn't changed since HTML 4.)
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Pick battles big enough to matter, small enough to win." - Jonathan Kozel
Jul 20 '05 #2

"Darin McGrew" <mc****@stanfor dalumni.org> wrote in message
news:bs******** **@blue.rahul.n et...
Woolly Mittens <wm******@hotma ilz.com> wrote:
The TFOOT element needs to come before the TBODY element. Tables should
contain, in the following order:


Thanks, but isn't it odd to put the footer before the body?
Wouldn't that mess up the reading order in text-browsers?
Jul 20 '05 #3
Woolly Mittens wrote:
"Darin McGrew" <mc****@stanfor dalumni.org> wrote in message
news:bs******** **@blue.rahul.n et...
The TFOOT element needs to come before the TBODY element. Tables should
contain, in the following order:


Thanks, but isn't it odd to put the footer before the body?
Wouldn't that mess up the reading order in text-browsers?


If the browser knows how to handle tables - no. The idea is that the
browser could display the header and the footer, right away, then
progressively fill in the body. Even to display the body in a
scrollable box which doesn't overflow the canvas and the header and
footer are visible without scrolling the document.

--
Stanimir
Jul 20 '05 #4
In article <3f************ *********@news. wanadoo.nl> in
comp.infosystem s.www.authoring.html, Woolly Mittens wrote:

"Darin McGrew" <mc****@stanfor dalumni.org> wrote in message
news:bs******* ***@blue.rahul. net...
Woolly Mittens <wm******@hotma ilz.com> wrote:
The TFOOT element needs to come before the TBODY element. Tables should
contain, in the following order:


Thanks, but isn't it odd to put the footer before the body?
Wouldn't that mess up the reading order in text-browsers?


Yes, and maybe.

My Netscape 4 displays the <tfoot> before the body, but MSIE 4
displays the foot after the body. Netscape 6 displays the <tfoot> at
the end of the table.
Here's the test HTML I used:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title>TF OOT test</title></head>
<body>
<table border=2>
<thead><tr><th> col head 1</th><th>col head 2</th></tr></thead>
<tfoot><tr><t d colspan=2>This table contains no useful content
whatever. The present note is inside a &lt;tfoot&gt ;
tag.</td></tr></tfoot>
<tr><td>cell 11</td><td>cell 12</td></tr>
<tr><td>cell 21</td><td>cell 22</td></tr>
<tr><td>cell 31</td><td>cell 32</td></tr>
<tr><td>cell 41</td><td>cell 42</td></tr>
</table>
</body>
</html>
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #5
Stan Brown wrote:
Here's the test HTML I used:

[snip]


Make use of <tbody> for the last set of rows.
--
Anne van Kesteren
<http://www.annevankest eren.nl/>
Jul 20 '05 #6
In article <bt**********@r eader11.wxs.nl> in
comp.infosystem s.www.authoring.html, Anne van Kesteren wrote:
Stan Brown wrote:
Here's the test HTML I used:

[snip]


Make use of <tbody> for the last set of rows.


(1) Why? It's optional, so including or omitting it should make no
difference.

(2) As a matter of fact, I did try it both ways, just to see if
there were an obscure bug in NS4. It didn't matter.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #7
Stan Brown wrote:
In article <bt**********@r eader11.wxs.nl> in
comp.infosystem s.www.authoring.html, Anne van Kesteren wrote:
Stan Brown wrote:
Here's the test HTML I used:

[snip]


Make use of <tbody> for the last set of rows.

(1) Why? It's optional, so including or omitting it should make no
difference.

(2) As a matter of fact, I did try it both ways, just to see if
there were an obscure bug in NS4. It didn't matter.


Why use <thead> (or am I making a stupid mistake here?)?

--
Anne van Kesteren
<http://www.annevankest eren.nl/>
Jul 20 '05 #8
In article <bt**********@r eader11.wxs.nl> , one of infinite monkeys
at the keyboard of Anne van Kesteren <ma**@annevanke steren.nl> wrote:
Why use <thead> (or am I making a stupid mistake here?)?


To mark up a table header?

Even if you don't care about semantics, it's a great hook for CSS
if (like me) you find many tables benefit from a clear visual
distinction between the headers and data.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #9
>> In article <bt**********@r eader11.wxs.nl> in
comp.infosystem s.www.authoring.html, Anne van Kesteren wrote:
Make use of <tbody> for the last set of rows.
Stan Brown wrote:
(1) Why? It's optional, so including or omitting it should make no
difference.

(2) As a matter of fact, I did try it both ways, just to see if
there were an obscure bug in NS4. It didn't matter.

In article <bt**********@r eader11.wxs.nl> in
comp.infosystem s.www.authoring.html, Anne van Kesteren wrote:Why use <thead> (or am I making a stupid mistake here?)?


Because modern browsers, when printing a long table, will repeat the
column headings at the top of each page if they're inside <thead>.
(Mozilla 1.4 qualifies as a modern browser on this score. I don't
know whether there are any others.)

Once again, why did you suggest putting in <tbody>?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
23999
by: F. Da Costa | last post by:
Following is a snippet of html in which I hide a whole table and try to hide a single row. Here is my question (plz don't chew my head off if its css related instead): Why does the divTable <div> Hide/Show work but not the divRow version? What I'm trying to do here is simultaneously hide 1 or more rows (possibly with nested divs as well). This would allow for an elegant an well performing base for an html base treetable (but I guess...
9
6845
by: Akseli Mäki | last post by:
Hi, the subject say quite a lot. I have about the following code(4.01 transitional): <p>blaa blaa blaa <ul> <li><a href="foo.html">foo</a></li> <li><a href="bar.html">bar</a></li> </ul>
44
919
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to put either tag inside an HTML <TD> and have the same kind of scrolling effect. This would allow me to fill the screen and have the size of the scrolling box change on resize. Thanks in advance.
4
26233
by: Adam Smith | last post by:
Hello, Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to select multiple rows in a Table such that I can demarcate several rows containing form elements in a table? Thanks
16
8379
by: matt | last post by:
hello, ive been trying to figure something out, largely thru trial & error. thought perhaps someone else may have knowledge. i have an html table that consists of blocks of related data -- each block contains three rows. this table is destined for paper printing. i would like to tell the browser *not* to bust up my blocks. rather, i would like it to smartly insert a page break inbetween <tbody>s if the last one cannot be rendered...
0
2015
by: pravinnweb | last post by:
Hi, i have one table with <thead>,<tbody> and <tfooter> i have applying the overflow property for <tbody> section in firefox its working fine.but in IE6 the <thead> section is coming in the <tbody> section can anyone give me solution here is the code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10618
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.