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.

HTML HTML Tables HTML Tables

Jack Weldon
Jack Weldon
1,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>
    <title>HTML Tables Challenge</title>
    <h1>HTML Tables Challenge</h1>

    <!-- Write your code below -->



1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse 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>, but <td> is used for data cells. The tag you're looking for is <th> for header cells.

So, if I swap out your <td></td> for <th></th>, your code passes with flying colors!

Hope this helps! :sparkles:

Jack Weldon
Jack Weldon
1,696 Points

Cheers! Noticed the td/th issue when I looked through my notes - got confused thinking thead changed the semantic meaning of td cells to that of th. Thanks for pointing it out ^^