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

Jessica Diaz
Jessica Diaz
618 Points

How to put two header cells inside of a row?

Help. Im on Challenge tag 4 of 8 in HTML Tables exercise. Ive tried several types of code and nothing is working

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>Night</th>
    <th>Day</th>
    <th>Afternoon</th>
  </tr>
  </thead>
  <tr>
    <td>dark</td>
    <td>light</td>
  </tr>
  <tr>
    <td>moon</td>
    <td>sun</td>
  </tr>
</table>
  </body>
</html>
Bogdan Cabaj
Bogdan Cabaj
16,349 Points

This pasted challenge 4 of 8. Try removing your 3rd th.

    <table>
      <Thead>
        <tr>
          <th>Fruit</th>
          <th>Vegetable</th>
        </tr>
      </Thead>
    </table>

2 Answers

Steven Parker
Steven Parker
231,261 Points

You've got one too many cells in that row.

For task 4 the challenge says "Put two header cells ...", but it looks like you have three.