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 trialPrasad Devaraj
2,397 PointsTry adding table heading tag inside of the table
Here is my code,
<table> <tr> <th></th> </tr> </table>
I'm not able to figure out wat's wrong here. Please help !
2 Answers
eck
43,038 PointsMaybe try this?
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
</table>
Joseph Alejandro
1,428 Pointsyou need to leave a blank line after the three backticks (```) so that the code display correctly. Like this.
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
<tr>
</thead>
<tbody>
<tr>
<td>Data</td>
</tr>
</tbody>
</table>
Prasad Devaraj
2,397 PointsPrasad Devaraj
2,397 PointsI don't know why the code is not displayed here. Trying again, "< table> < tr> < th>< /th> < /tr> < /table>"