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

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.