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

Stacy Wren
PLUS
Stacy Wren
Courses Plus Student 1,384 Points

I think my answer is correct, but I keep getting told that it is not correct. Am I missing something?

2 Answers

Stone Preston
Stone Preston
42,016 Points

you need to use <thead></thead> not <th><th>

Lorenzo Pieri
Lorenzo Pieri
19,772 Points

Hi Stacy. Please feel free to check out the correct solution for the TABLE TEST

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

    <!-- Write your code below -->
    <table>
      <thead>
        <tr>
          <th>Element</th>
          <th>Element</th>
        </tr>
      </thead>
      <tbody>
        <tr>
           <td>This is some text</td>
           <td>This is some text</td>
           <td>This is some text</td>
        </tr>
        <tr>
          <td colspan="2">This is also some text, but it spans over 2 columns</td>
        </tr>
      </tbody>
    </table>

  </body>
</html>