Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTim Meissner
3,327 PointsTable Code Challenge Problems
I'm being asked to add a table body. But once I do, it says my task 1 code is breaking!
< table > < thead > < tbody > < tr > < th >Test< /th > < th >Test< /th > < /tr > < /tbody > < /thead > < /table >
3 Answers
Michael Hulet
47,913 PointsThe problem seems to be that you're nesting your <tbody></tbody>
inside of your <thead></thead>
. You're not supposed to do this. Those 2 elements function in many ways similarly to the document's <head></head>
and <body></body>
tags, especially in that one is not supposed to be nested in the other.
Eric Vandenberg
9,095 Points<table>
<thead>
<tr>
<th>Test</th>
<th>Test</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
Tim Meissner
3,327 PointsThank you Eric Vandenberg and Michael Hulet That worked!