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 HTML Tables HTML Tables

kat martin
kat martin
4,949 Points

Tables code challenge help?

Can't seem to pass the code challenge for the tables section- the challenge is asking me to put some text inside of my table body row, so I did this:

<tbody> <tr> <td>table body row</td> <td>please work!</td> </tr> </tbody>

I am pretty sure this is correct but also the <tbody> tag was not mentioned in the video I am pretty sure.

I can't get past this, I'm not sure if there's a better answer.

Thanks!

2 Answers

Brittany B
Brittany B
14,206 Points

Are you using the <tbody> tags, I went back to see what all the challenge was and after the <thead></thead> bit you put the tbody under that section and fill it up with a normal <tr><td>text goes in the td's</td></tr> stuff... just remember to close the tbody too!

Kuhrt Cowan
Kuhrt Cowan
23,796 Points

I'm not sure what code you're using, but to get text inside a table cell there are 3 tags. It looks like this:

<table>
    <tr>
        <td>Your text goes here</td>
    </tr>
</table>

Hope this helps!