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

Jennifer Grau
Jennifer Grau
3,762 Points

Table Headings

I'm on the code challenge for HTML Tables. I'm not sure what I'm doing wrong. It says: Add a table heading tag to the table you just created. I added:

<table>
        <tr>
            <th>heading</th>
        </tr>
        <tr>
            <td>row</td>
        </tr>
 </table>

When I check the work, it says this: Bummer! Try adding a table heading tag inside of the table.

It's probably the simplest thing and I'm just not seeing it. I even went back to watch the video all over.

4 Answers

Neville Barrett
Neville Barrett
6,141 Points

Hi Jennifer,

Have you tried:

<table>
<thead>
<th>Heading</th>
</thead>
<tr>
<td>row</td>
</tr>
</table>

I hope this helps.

Jennifer Grau
Jennifer Grau
3,762 Points

Yes, that worked, thank you. In the end, I don't think they phrased the question correctly. They asked me to add a heading (which I did - because it showed up in the preview) ... but, in fact, they were looking for me to add a header. Thank you for your quick response!

Neville Barrett
Neville Barrett
6,141 Points

Sure thing! Good luck. :)

Someone please change the wording of this question...