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 Structuring Tables Add the Table Head and Body Elements

Add the table head and table body elements in the appropriate places.

I don't know what to do

2 Answers

You need to add the <thead> tag on line 10 and 15 and you need to add the <tbody> tag on line 16 and 29.

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

You need to add thead and tbody tags on proper places, as on example below

<table>
 <thead>
  <tr>
     <th>Month</th>
     <th>Savings</th>
  </tr>
 </thead>
 <tfoot>
  <tr>
     <td>Sum</td>
     <td>$180</td>
  </tr>
 </tfoot>
 <tbody>
  <tr>
     <td>January</td>
     <td>$100</td>
  </tr>
  <tr>
     <td>February</td>
     <td>$80</td>
  </tr>
 </tbody>
</table>

Read more here - http://www.w3schools.com/tags/tag_thead.asp, http://www.w3schools.com/tags/tag_tbody.asp, http://www.w3schools.com/tags/tag_tfoot.asp