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

1 Answer

Joseph Pietras
Joseph Pietras
2,437 Points

This should help. You do not have to use the tbody/thead/tfoot elements in your tables, but they can be useful for different situations. Happy Coding!

<table></table>

The table tag is the opening tag for the entire table. It can be considered the parent element.

<thead></thead>

The table head tag will always display as the top row when it is within a table.

<tbody></tbody>

The table body will display as the middle section of the table, regardless of where you place the tags within the parent table element.

<tfoot></tfoot>

The table foot element will place the row at the bottom of the parent table element.