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 trialBrett Hogg
1,191 PointsIt is asking me to create table header tag, is that <th></th>?
I am doing it inside the "table" tags and it is still not working.
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables Challenge</title>
</head>
<body>
<h1>HTML Tables Challenge</h1>
<!-- Write your code below -->
<table>
<th></th>
</table>
</body>
</html>
2 Answers
jason phillips
18,131 PointsYes but the th tags go inside a thead tag
<table>
<thead>
<tr>
<th>text</th>
<th>text</th>
</tr>
</thead>
<tbody>
<tr>
<td>text</td>
<td>text</td>
</tr>
</tbody>
</table>
Chunwei Li
18,816 PointsHi Brett,
I guess it should be put into tr tag like the below.
<table>
<tr>
<th>frist row and first column</th>
<th>first row and second colum</th>
</tr>
<tr>
<td>second row and first column</td>
<td>second row and second colum</td>
</tr>
</table>
Best Regards!