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 trialTravis Smallwood
6,565 PointsWeb 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!
2 Answers
kevin jordan
11,353 PointsTravis - Are you using the thead tag ? Such as:
<table>
<thead></thead>
</table>
Travis Smallwood
6,565 PointsThanks 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!
Travis Smallwood
6,565 PointsFor 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!
Travis Smallwood
6,565 PointsTravis Smallwood
6,565 PointsI'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.