Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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...