Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: Tag / element question

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Sat, 18 Sep 2004 12:42:47 +1000
Message-ID: <414BA0A7.4070108@iinet.net.au>
To: www-html@w3.org

Jukka K. Korpela wrote:
> On Fri, 17 Sep 2004 dwitchell@sportcraftcars.com wrote:
>>My question is "Why is there a th (table header) tag / element but not
>>a tf (table footer)?"

I really don't see any point to it.  The only place it would make any 
sense is within a tfoot element, thus td has enough semantics already, 
when used within a tfoot.

> Probably because there's the <tfoot> element. But I guess the hard
> question is what <tfoot> really means. Can anyone describe that in terms
> of structural and semantic relationships, without implying a visual
> rendering or any "below" relation, and without using a word like "footer"
> without definition?

Itâ??s just for containing information that is relevant to all the data in 
the table.  It's often used for totals of numerical data.

While we're on the subject of tfoot, is there a reason why tfoot must 
appear before tbody?  I know some people that don't realise, and just write:
<table>
     <thead/>
     <tbody/>
     <tfoot/>
</table>

It does seem logical, even though it's wrong, but I've been unable to 
explain why it's wrong, other than it's how the DTD specifies it.

-- 
Lachlan Hunt
http://www.lachy.id.au/ 
Received on Saturday, 18 September 2004 02:42:56 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.