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 trialAkshay Kakkar
529 PointsI am adding a heading to the table but it's keep on giving me bummer!
Something is wrong with the question I've been asked to put a heading on to
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables Challenge</title>
</head>
<body>
<h1>HTML Tables Challenge</h1>
<table>
<thhead>
<tr>
<th>There are my favourite fruits</th>
<tr>
<td>Veggies</td> </tr>
</tr>
</table>
</thhead>
</body>
</html>
2 Answers
Jake Lundberg
13,965 PointsA few things here:
1) you are trying to use "thhead", but it should be "thead"...you have one too many h's in there... 2) you are trying to open a new row before your first row is closed... 3) your close thead tag needs to be before your closing table tag...
like this:
<table>
<thead>
<tr>
<th>There are my favourite fruits</th>
</tr>
</thead>
<tr>
<td>Veggies</td>
</tr>
</table>
bothxp
16,510 PointsHi Akshay,
Just try and take the challenges 1 step at a time. Task 2 of 8 asks you to "Add a table heading tag to the table you just created."
So all you need to do at this stage is to add the opening and closing table heading tags.
<table>
<thead>
</thead>
</table>
and as Jake has already pointed out you had 1 too many h's in the tag.