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 am not quite sure how to fix this. Can someone please guide me on how to get past this question?

I am trying to put two header cells into a row and I dont know how.

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

    <!-- Write your code below -->
<table border="1">
  <thead>
  <tr>
    <th>These are My Favorite Colors</th>
  </tr>
    <tr>
      <thead>
      <th>Blue is my Favorite</th>
      <th>Colors are Great</th>
      </thead>
    </tr>
  </thead>
  <tr>
    <td>Blue</td>
  </tr>
  <tr>
    <td>Pink</td>
  </tr>
  <tr>
    <td>Purple</td>
  </tr>
 </table>

  </body>
</html>

2 Answers

Hi Heather,

I'm assuming you're on task 4. You have 2 thead elements which is throwing off the engine.

I removed some of that extra html and you should have something more like this for the thead portion of this code challenge.

<thead>
    <tr>
      <th>Blue is my Favorite</th>
      <th>Colors are Great</th>
    </tr>
  </thead>

So there is 1 thead element with 1 row inside of that, and then 2 header cells inside of that 1 row.

Let me know if it's still unclear for you.

Hello heather,

If you are referring to question 4. The question is slightly confusing. It should state "Place two heading cells with any text inside row just created." instead of "Put two header cells with any text inside row just created."

There is no need to create multiple table rows.

<thead>
    <tr>
      <th>Some text here</th>
      <th>Any text here</th>
    </tr>
</thead>