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

Error Code Challenge Html ---->TABLE

Hi everybody. I have a problem with the code challenge about the "tables". I don't undestand why I am doing it wrong.

The task is: "Add a table heading tag to the table you just created."

That's what I wrote:

<table>
    <tr>
       <th> </th>
    </tr>
</table>

When I check the result is: "Bummer! Try adding a table heading tag inside of the table." I posted only what I wrote, I didn't modify the other tags on the page, so everything is fine. Can somebody explain to me what I'm doing wrong? Thank you very much.

[[ed. note]] Added markdown to fix code formatting

6 Answers

I think your confusion comes from <thead> vs <th>.

The later is for sectioning content using <thead> <tbody> and <tfoot>. Whereas <th> is for naming columns.

I'm a beginner. I wrote the tags, but u cannot see them because it seems the page is codifying them :'(

Ok now they appear. I'm kinda confused.

Yes, that's was the reason. Thank you for the promt reply!

James Barnett : Thank you sir!

<table> <tr> <td> </td> </tr> </table>

Ok now they appear. I'm kinda confused.