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

Nick Ars
Nick Ars
5,341 Points

Could you help me please, how to add a table body tag and where? Maybe I missed a moment in the video, but I can't find(

I cannot pass task 5. Help please!

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

    <!-- Write your code below -->
    <table>
      <thead>
        <tr>
          <th>PC</th>
          <th>Console</th>
        </tr>

      </thead>
    </table>


  </body>
</html>

2 Answers

Riho Rannamäe
Riho Rannamäe
3,784 Points

There is no stupid questions! ;) You are actually learning something (HTML Tables) from Treehouse, what I haven't watched/learned myself (yet). Maybe reading from these links, can clarify more about the tbody tag.

+ http://www.w3schools.com/tags/tag_tbody.asp

+ https://developer.mozilla.org/en/docs/Web/HTML/Element/tbody

Nick Ars
Nick Ars
5,341 Points

Thank you again. Everything is clear)

Riho Rannamäe
Riho Rannamäe
3,784 Points

<tbody> tag should be added after <table> tag. Hope this helps to complete your challenge! :)

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

    <!-- Write your code below -->
    <table>
      <tbody> <!--Table body tag-->
      <thead>  
        <tr>
          <th>PC</th>
          <th>Console</th>
        </tr>       
      </thead>
      </tbody> <!--Table body tag-->
    </table>
  </body>
</html>
Nick Ars
Nick Ars
5,341 Points

Thank you very much for your help!:) Maybe it is a stupid question, but what is the aim of this tag?) <tbody>