Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,335 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
215,986 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.