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 trial

HTML HTML Tables HTML Tables

Tim Meissner
Tim Meissner
3,327 Points

Table 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
Michael Hulet
47,913 Points

The 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
Eric Vandenberg
9,095 Points
<table>
  <thead>
     <tr>
        <th>Test</th>
        <th>Test</th>
     </tr>
  </thead>
  <tbody>

  </tbody>
</table>