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

John Deininger
John Deininger
3,958 Points

add a table heading tag, doesn't work

<table border="1"> <tr> <th></th> </tr>
<tr> <td></td> </tr> <tr> <td></td> </tr> <tr> <td></td> </tr> </table>

I don't see what I am getting wrong with this

2 Answers

Ben Brenton
Ben Brenton
266 Points

Unless you didn't post your code properly, the obvious answer from looking at it is that you don't have the initial <table> element.

Hope this helps.

John Deininger
John Deininger
3,958 Points

It's there it's just not copied. I tried <theading>, <table-heading>, I also tried filling them in (i.g. <th>Fruits</th>. but that didn't work either. It is a question in the html tables challenge in the html course. Maybe it is just an error or I am not understanding the question properly.

John Deininger
John Deininger
3,958 Points

I just took another look at it and thead is what they are looking for.