Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Jack Weldon1,696 Points
"Put two header cells in the table row you just created." - What am I doing wrong?
My code is attached, and the question I'm running into troubles with is in the post title. I've got two table data tag brackets within the row I created in the previous question and I've added text to them - But it reads as incorrect for the question. If anyone could point out where I'm making a mistake I would greatly appreciate it!
<!DOCTYPE html> <html> <head> <title>HTML Tables Challenge</title> </head> <body> <h1>HTML Tables Challenge</h1> <!-- Write your code below --> <table> <thead><tr><td>Heading1</td><td>Heading2</td></tr></thead> </table> </body> </html>
Jennifer NordellTreehouse Teacher
Hi there! You are sooooo close on this one. You created the table header just fine. You put a table row in it just fine, but then got caught up on the step where you put header cells inside the row. You used the tag
<td> is used for data cells. The tag you're looking for is
<th> for header cells.
So, if I swap out your
<th></th>, your code passes with flying colors!
Hope this helps!