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

Put two header cells with any text inside of the row you just created

I know this one has been answered before, but I tried all the answers and I am still stuck please help:

<table>
       <thead>
          <tr>
            <th>Oranges</th>
          </tr>
          <tr>
             <th>Vegetables</th>
             <th>Wrong answer</th>
             <th>Wrong answer2</th>
         </thead>
    </table>

5 Answers

Chase Lee
Chase Lee
29,275 Points

Try adding the <th>'s to the first row like this:

    <table>
      <thead>
        <tr>
          <th>Hi</th>
          <th>Bye</th>
        </tr>
      </thead>
    </table>
Chase Lee
Chase Lee
29,275 Points

Also I see that you didn't close your second table row. (<tr></tr>).

Hi Francisco,

The two header cells are in the first row. Hope this helps! Cheers, -Todd

Try this:

<table> <thead> <tr> <th>Head1</th> <th>Head2</th> </tr> </thead> </table>

Chase Lee
Chase Lee
29,275 Points

Can you give me the link to the code challenge that your having problems with.

Thank you!! It doesn't make sense I added a one header to the first row and it worked.