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

Stuck on HTML Table Heading tag

Hey there,

I've really enjoyed Treehouse so far. I'm done with the HTML section of the "Front End Development" track except for one single question:

"Add a table heading tag to the table you just created."

My answer:

<table>
 <tr>
     <th> heading </th>

 </tr>
</table>

Isn't <th> the table heading tag? What am I missing here?

Thanks!

3 Answers

Here is an example table:

<table>
<tr>
  <th>Name</th>
  <th>Telephone</th>
  <th>Telephone</th>
</tr>
<tr>
  <td>Bill Gates</td>
  <td>555 77 854</td>
  <td>555 77 855</td>
</tr>
</table>

"th" is the table header tag.

Hope this helps!

*****UPDATED

Sorry, when I made this reply your Markdown was not showing correctly, but now I can see that you have fixed it. As far as I can see you are using the correct tags, so perhaps another step was missed.

Thanks for replying so quickly! :)

If I copy and paste your code (to see if it works) I still get the question incorrect.

I would just skip the question, but I don't see an option for that, I can't move on until it's fixed.

Hi Tyler,

I think you're looking for the <thead> element. This is for a table header. <th> is the header cell.

<table>
    <thead>
    </thead>
</table>

Inside the thead is where you would put your tr that would contain your header cells th

Thanks!

.

Ah, I found the issue. Use this code:

<table>

        <thead><thead>

    </table>