On 7/14/05, victor NOAGBODJI <[EMAIL PROTECTED]> wrote: > What is the advantages of using tbody instead of table, when using CSS?
You can't use tbody instead of table. Tbody is a child element of table, used to mark up groups of data (as opposed to thead - for the main table heading, and tfoot for a footer (e.g. column totals)). If you are using HTML, then you can't avoid using tbody - its use is implied by the existance of a table row inside the table (since the start and end tags for tbody, like <html> and <body> are optional). XHTML 1.0 fudged this by allowing tr elements to be children of table directly so that people could convert from HTML easily. Not a great design choice IMO. The main uses for tbody with CSS (and JavaScript) are dynamically showing and hiding blocks of data in a table (e.g. a tbody for each region containing several one row per office would let you do client side filtering to show only one specific region). In theory you could also use tbody to have the data in a table scroll without moving the headings about - browsers mean this doesn't work in practise. -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/