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

Web Design - Add a table heading tag to the table

I'm stuck on this task. I feel like my code is accurate?

<table> <tr> <th>Heading One</th> <th>Heading Two</th> </tr> </table>

Any help is appreciated!

I'm not sure how I can paste the actual code so that you can see it? The <code> tag doesn't seem to work in here.

2 Answers

kevin jordan
kevin jordan
11,353 Points

Travis - Are you using the thead tag ? Such as:

<table>
<thead></thead>
</table>

Thanks so much for the reply Kevin! Just as soon as I asked the question I realized exactly what I was missing. Everything is good on my end now, thanks again!

For others who may encounter the same issue that I was having, I was using the

<th>

tag rather than the

<thead>

So, my code was

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

I was creating 'header cells' as opposed to a 'table header'. This was a simple mistake that stumped me for awhile. I hope this explanation may help someone in the future!