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 trialJack Weldon
1,708 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>
1 Answer
Jennifer Nordell
Treehouse TeacherHi 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!
Jack Weldon
1,708 PointsJack Weldon
1,708 PointsCheers! 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 ^^