| | |
<tbody> tag
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
What exactly is the point of the <tbody> tag? Can one table consist of more than one pair of these tags?
I think:
<thead> is all the column headings, i.e. the first row of most tables
<tbody> is the data under those headings
so technically if you need two tbodies then you must have changed column headings, which technically is another table.
Or wasn't that what you had in mind?
<thead> is all the column headings, i.e. the first row of most tables
<tbody> is the data under those headings
so technically if you need two tbodies then you must have changed column headings, which technically is another table.
Or wasn't that what you had in mind?
My question is whether it is legal to do:
HTML and CSS Syntax (Toggle Plain Text)
<table> <thead> <tr><td>Heading</td></tr> </thead> <tbody> <tr><td>Body 1</td></tr> </tbody> <tbody> <tr><td>Body 2</td></tr> </tbody> </table>
it validates in xhtml 1.0 strict.
Also http://www.htmlhelp.com/reference/ht...les/tbody.html
It refers to needing 'one or more' tbody elements in a table.
So I guess you can.
edit: see also http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3 - which also refers to one or more
Also http://www.htmlhelp.com/reference/ht...les/tbody.html
It refers to needing 'one or more' tbody elements in a table.
So I guess you can.
edit: see also http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3 - which also refers to one or more
tbody is for grouping td tags.
so in a data table, your column headings would be in a thead tag, the main body of the td cells in a tbody, and the footer info in a tfoot tag. Or something like that anyway.
•
•
•
•
The TBODY element defines a group of data rows in a table.
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: Unmaximized Window Overlaps Images. :\
- Next Thread: Help with Myspace site in IE and FF
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7







