tbody, thead, and tfoot give the data more semantics and allow one to
operate on logically grouped rows. One CSS application that comes to
mind is:
thead th {
/* style column headers here */
}
tbody th:first-child {
/* style row headers here */
}
I've found the real advantage of packaging table rows into thead and
tbody containers comes when I manipulate table data with ECMAScript
(JavaScript) via the DOM. I'm easily able to find the table data (and
not headers) by looping through the tr children of the tbody element
(s), for example.
- Justin
On Jul 14, 2005, at 3:53 AM, victor NOAGBODJI wrote:
Hello,
What is the advantages of using tbody instead of table, when using
CSS?
thanks
______________________________________________________________________
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/
______________________________________________________________________
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/