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 trial

HTML

Table Heading Tag Issue

Directions: Add a table heading tag to the table you just created.

There seems to be a problem with my code.

<table border="1">
<th>Fruit</th>
</table>

Can someone please direct me in the right path please.

2 Answers

Eric Washington you seem to have the right code for table header but, you still have to include a table row to contain your table header.

<table border="1">
<thead>
 <tr>
  <th>Fruit</th>
 <tr>
</thead>
</table>

Thanks Rob! I have figured it out.

  • Eric

Glad you got it sorted out.

<table border="1">
<th>Fruit</th>
</table>