943,492 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Nov 20th, 2004
0

<tbody> tag

Expand Post »
What exactly is the point of the <tbody> tag? Can one table consist of more than one pair of these tags?
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Nov 23rd, 2004
0

Re: <tbody> tag

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?
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Nov 23rd, 2004
0

Re: <tbody> tag

My question is whether it is legal to do:

HTML and CSS Syntax (Toggle Plain Text)
  1. <table>
  2. <thead>
  3. <tr><td>Heading</td></tr>
  4. </thead>
  5. <tbody>
  6. <tr><td>Body 1</td></tr>
  7. </tbody>
  8. <tbody>
  9. <tr><td>Body 2</td></tr>
  10. </tbody>
  11. </table>
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Nov 23rd, 2004
1

Re: <tbody> tag

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
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Nov 23rd, 2004
0

Re: <tbody> tag

Oh cool! Thanks. Definitely answers my question.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Nov 23rd, 2004
0

Re: <tbody> tag

lol no problem
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Nov 29th, 2004
0

Re: <tbody> tag

Has this replaced <TD></TD>? If not when do you use one over the other?
Thanks,
BuddyB
Reputation Points: 10
Solved Threads: 2
Junior Poster
buddyb is offline Offline
185 posts
since Oct 2003
Nov 30th, 2004
0

Re: <tbody> tag

tbody is for grouping td tags.

Quote ...
The TBODY element defines a group of data rows in a table.
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.
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Nov 30th, 2004
0

Re: <tbody> tag

I got it, thanks.
BB
Reputation Points: 10
Solved Threads: 2
Junior Poster
buddyb is offline Offline
185 posts
since Oct 2003
Dec 1st, 2004
0

Re: <tbody> tag

no problem
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Unmaximized Window Overlaps Images. :\
Next Thread in HTML and CSS Forum Timeline: Help with Myspace site in IE and FF





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC