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

HELP there's a major glitch and won't let me pass

this is the last quiz on tables question #4 it's asking me to create two th cells but then it says it's wrong.... <table style="width:300px"> <thead> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> <tr> <th>swag</th> <th>swag2</th> </tr> </thead>

</table>

6 Answers

the challenge asked to add the 2 th elements to the thead element you just created. You just placed the th elements the wrong place. The code below passes.

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

    <table>
      <thead> 
<tr>
   // you should add th's here
  <th>Eve</th>
  <th>Jackson</th> 
  <td>Jill</td>
  <td>Smith</td> 
  <td>50</td>
</tr>
      </thead>
<tr>
  <td>94</td>
</tr>
</table>

  </body>
</html>

thank you

Post the code you submitted to the challenge that isn't passing.

got it

Bummer! Header cells must be inside of a table row and have text in them.

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

    <table>
      <thead>
<tr>
  <td>Jill</td>
  <td>Smith</td> 
  <td>50</td>
</tr>
      </thead>
<tr>
  <th>Eve</th>
  <th>Jackson</th> 
  <td>94</td>
</tr>
</table>


  </body>
</html> ```

i'm copying the code but nothing comes up when i paste it

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

    <table>
      <thead>
<tr>
  <td>Jill</td>
  <td>Smith</td> 
  <td>50</td>
</tr>
      </thead>
<tr>
  <th>Eve</th>
  <th>Jackson</th> 
  <td>94</td>
</tr>
</table>


  </body>
</html>

no problem