If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

HTML: The table tags

The <table> tag is used to format tabular data. The table tag must contain all of the child tags needed to format the data into headers, rows, and columns.
A table should start with a header row with the column names. The <thead> element starts the header area, the <tr> element creates a row, and <th> elements create cells in the row. A table can consist of any number of data rows after the header. The <tbody> tag begins the body (data) area, the same <tr> tag creates a row, and <td> tags create data cells in each row.

Want to join the conversation?

No posts yet.