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't find any where in the video where the term table body is used. I have tried different combinations... fail.

What is the "table body" that is being referred to in this question?

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

    <!-- Write your code below -->
    <table>
      <thead>
        <th>blue</th>
        <th>green</th>
      </thead>
      <tfoot>
      </tfoot>
   </table>


  </body>
</html>
Jonathon Weisse
Jonathon Weisse
14,493 Points

I don't think Nick does mention table bodies in those videos, but it is mentioned in the teacher notes below the video. Table body tags look like:

<tbody></tbody>

As you may have guessed they are used to house the body portion of the table. For more information check out another of Nick's courses called "HTML Tables". I know he talks about Table Body in those videos.

2 Answers

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

I believe you're right, I didn't see any mention of tbody from the video https://teamtreehouse.com/library/html/tables/headers-and-footers either; but the Teacher's Note tab underneaths the video provides some reference for this tag.

I know that, a while ago, Treehouse has edited and rearranged the order of the lectures videos on some legacy courses; perhaps during the process, they made a mistake of cutting out a portion of the video that contains the required knowledge for doing the Code Challenge. Sorry about that. Here's how you'd do it.

  <body>
    <h1>HTML Tables Challenge</h1>

    <!-- Write your code below -->
    <table>
      <thead>
        <th>blue</th>
        <th>green</th>
      </thead>

      <!-- line below is tbody tag -->
      <tbody></tbody>

      <tfoot>
      </tfoot>
   </table>


  </body>
alex mattingley
alex mattingley
7,508 Points

Quick pro tip, if you are ever confused to exactly what an element does, usually a quick google search will help you resolve the issue. For example a search for "table body html" would reveal several links revealing more information about tables which is what this quiz is focusing on. The first link on google for me is: http://www.w3schools.com/tags/tag_tbody.asp ...which of course is all about tables :)