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

General Discussion

Problems With HTML Tables Code Challenge!

Hi all,

What is wrong with my code below? I cannot pass 7/8 on the code challenge for HTML Deep Dive / Lists: http://teamtreehouse.com/library/html/tables/html-tables. It says 'Bummer! Try adding a table cell with text in it to your table body's row.'....

<table>
<tr>
  <thead>
    <tr>
       <th>Example 1</th>
       <th>Example 2</th>
   </tr>
  </thead>
<tr>
  <tbody>
  <tr>
     <td>January</td>
     <td>February</td>
 </tr>
  </tbody>
  </tr>
</table>

4 Answers

It looks correct to me. I was able to submit your code and pass the task.

Fails in Both Chrome and Safari for me....cleared cache, too....it fails on Step 7 but works up until then?

Hi Mike,

Look at the closing table row tags in the table body.

Jeff

<table>
<tr>   <-------HERE
  <thead>
    <tr>
       <th>Example 1</th>
       <th>Example 2</th>
   </tr>
  </thead>
<tr>    <-------HERE
  <tbody>
  <tr>
     <td>January</td>
     <td>February</td>
 </tr>
  </tbody>
  </tr>    <---------AND HERE
</table>```

Thank you :) Seems you don't need <.t.r.> around your <.t.head.> and <.t.body>, just inside them.

Much appreciated!