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
Zachary Dalzell
3,236 PointsCode Challenge: HTML Tables
I'm trying to do the code challenge for the HTML Tables section. Can anyone tell me why this code won't let me pass the current step?
I'm being asked to create a table heading for the table. Here is my code:
<table border="1">
<tr>
<th>Heading tag</th>
<th>Heading tag 2</th>
</tr>
</table>
Shouldn't this be working?
Michael O'Malley
4,293 PointsHaha, wow. I'll just back away from this one.
2 Answers
faranaway
Courses Plus Student 13,885 PointsThe proper tag that is being asked for is <thead > </thead >
Zachary Dalzell
3,236 PointsYou're right, thank you. I'm not sure why I had to use that, since I don't think it was touched on at all in the lessons (that I recall, nor is it in any of the code), but it works!
Michael O'Malley
4,293 PointsI went back and watched the Headers and Footers video. Nick does explain that it's for the sake of Screen Readers, Search Engines, and allow for easier customization through CSS (although he does comment that it's mostly for semantics).
Zachary Dalzell
3,236 PointsDid he? Shoot I totally missed it, that's what happens at 1AM, oops! Thanks for the help though!
Michael O'Malley
4,293 PointsThat appears correct. I went back and attempted to redo that Code Challenge and I'm hitting the same wall (even when copying code straight from W3C).
Zachary Dalzell
3,236 PointsI tried copy and pasting the exact code from the lessons that were taught in that section and they are failing. It seems that there is an error. At least I know now that it isn't me (at least pretty sure).
Michael O'Malley
4,293 PointsI don't think it's you, but that's only because I don't want to think I'm choking up on basic HTML too. :P
Zachary Dalzell
3,236 PointsApparently I have to use "thead" instead of "th".
Michael O'Malley
4,293 PointsI guess I must have done that my first time through, but going back and redoing it, I interpreted add a table header as <th> (which creates a table header).
faranaway
Courses Plus Student 13,885 Pointsfaranaway
Courses Plus Student 13,885 Pointsyou are suppose to use "thead" and not "th". :)