HTML Table Reference Cheat Sheet!

Table of Tags

Tag Name Description Example
<table> Table The wrapper element for all HTML tables. This table starts with a table tag.
<thead> Table Head The set of rows defining the column headers in a table. Tag, Name Description and Example are thead tags
<tbody> Table Body The set of rows containing actual table data. The tag is used to group the body content in an HTML table
<tr> Table Row The table row container. Used in conjunction with the thead and tfoot elements to specify each part of a table (body, header, footer).
<td> Table Data The table row container. The data inside the tr, like this!
<tfoot> Table Foot The set of rows defining the footer in a table. Tells a browser that the table is ending, also useful for printing.

Table Attributes

Attribute Name Description Example
colspan Column Span Specifies the number of columns a table cell should span. You could make one td span two columns.
rowspan Row Span Specifies the number of rows a table cell should span. You could make one td space two tr