Reply to Re: What if you don't have a thead/tbody/tfoot?

Your name:

Reply:


Posted by richard on 01/06/08 16:53

On Sun, 6 Jan 2008 08:22:38 -0800 (PST), TonyV <kingskippus@gmail.com>
wrote:

>I've read that in XHTML 1.1, if you have a thead and tbody, you *must*
>have a tfoot. Also, according to the specification, it looks like all
>three *must* have at least one tr child element, with at least one th
>or td child element in it. Here's the spec I'm reading:
>http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_tablemodule
>
>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 rules are merely looking for
the tags.
<tfoot></tfoot>
If you have to have content, color it the same color as the background
and let it disappear.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация