<tbody> tag

Thread Solved

Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

<tbody> tag

 
0
  #1
Nov 20th, 2004
What exactly is the point of the <tbody> tag? Can one table consist of more than one pair of these tags?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: <tbody> tag

 
0
  #2
Nov 23rd, 2004
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?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: <tbody> tag

 
0
  #3
Nov 23rd, 2004
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>
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: <tbody> tag

 
1
  #4
Nov 23rd, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: <tbody> tag

 
0
  #5
Nov 23rd, 2004
Oh cool! Thanks. Definitely answers my question.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster
Join Date: Oct 2003
Posts: 185
Reputation: buddyb is an unknown quantity at this point 
Solved Threads: 1
buddyb buddyb is offline Offline
Junior Poster

Re: <tbody> tag

 
0
  #7
Nov 29th, 2004
Has this replaced <TD></TD>? If not when do you use one over the other?
Thanks,
BuddyB
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: <tbody> tag

 
0
  #8
Nov 30th, 2004
tbody is for grouping td tags.

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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2003
Posts: 185
Reputation: buddyb is an unknown quantity at this point 
Solved Threads: 1
buddyb buddyb is offline Offline
Junior Poster

Re: <tbody> tag

 
0
  #9
Nov 30th, 2004
I got it, thanks.
BB
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC