•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 397,767 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,452 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2956 | Replies: 9 | Solved
![]() |
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,881
Reputation:
Rep Power: 32
Solved Threads: 108
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
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
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?
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,881
Reputation:
Rep Power: 32
Solved Threads: 108
My question is whether it is legal to do:
<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>
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
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
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,881
Reputation:
Rep Power: 32
Solved Threads: 108
Oh cool! Thanks. Definitely answers my question.
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Oct 2003
Location: Franklin, Tennessee
Posts: 185
Reputation:
Rep Power: 5
Solved Threads: 1
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.
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.
•
•
Join Date: Oct 2003
Location: Franklin, Tennessee
Posts: 185
Reputation:
Rep Power: 5
Solved Threads: 1
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
- Previous Thread: Type on top of a graphic
- Next Thread: How to insert a Flash movie in html and maintain w3c standards?



Linear Mode