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

I can find no mistakes but I get error message "Try adding a table heading tag inside of the table.

The challenge is to add a table heading tag to the table you just created. I can find no mistakes but I get error message "Try adding a table heading tag inside of the table. Preview looks good. The box below Attach my code to this post is checked.

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>HTML Tables Challenge</title>
  </head>
  <body>
    <h1>HTML Tables Challenge</h1>

    <!-- Write your code below -->
    <table border="5" cellpadding="5" cellspacing="5"
 <thead>
      <tr>
        <th>These Are<br>My Children</th>      
        <th valign="middle">They are Young Women</th> 
      </tr>
 </thead>
    <tfoot>
      <tr>
        <td colspan="2" align="center">They are grown up</td>
      </tr>
    </tfoot>           
    <tbody>
      <tr>
        <td>Helen</td>
        <td>Cleopatra</td>
      </tr>
    </tbody>
  </table>

  </body>
</html>

4 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

You need to close your opening table tag, like this.

<table border="5" cellpadding="5" cellspacing="5">

Once done, you should be good to go. :-)

Never Mind.

I copied my answer to another editor for this forum question and when I copied it back to treehouse code challenge it accepted my answer as correct!

Thank you. That cleared up all my table problems!

Patryk Szady
Patryk Szady
3,434 Points

I seem to have a similar problem. Preview looks good, the th 's are there.

<table>
   <tr>
     <th>Month</th>
     <th>Savings</th>
   </tr>
   <tr>
     <td>January</td>
     <td>$100</td>
   </tr>
</table>