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

Jana Beals
Jana Beals
3,647 Points

Add a row in the table header

What am I not doing right?!

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

    <!-- Write your code below -->
    <table>
  <thead>
  <tbody>
    <table border="1">
    <tr>
      <th>Monday</th>
      <th>Tuesday</th>
      <tr>
      </tr>
    </tr>
    <tr>
      <td> Homework</td>
      <td> Homework</td>
      </tbody>
    </tr>
    </tbody>
  </thead> 
</table>
  </body>
</html>

2 Answers

Kevin Seagrave
Kevin Seagrave
9,508 Points

You have a table row opening tag and closing tag indented inside another table row and you also have 2 table body closing tags

Brent Suggs
seal-mask
PLUS
.a{fill-rule:evenodd;}techdegree seal-36
Brent Suggs
Front End Web Development Techdegree Graduate 21,343 Points

You're table body shouldn't be inside of your table header.

      <thead>
        <tr>
          <th>One</th>
          <th>Two</th>
        </tr>

      </thead>
      <tbody>
        <tr>
          <td>text</td>
        </tr>
      </tbody>
    </table>