Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,842 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>