HTML Table Reference

Table Elements
Tags Name Description
<table> table defines the entirety of the table
<caption> caption defines the title of the table
<thead> table head defines the set of rows containing the column headings of the table
<tbody> table body defines the set of rows containing the main content of the table
<tfoot> table foot defines the set of rows containg the footer of the table (usually the sums of the columns)
<tr> table row defines a single row of table data
<th> table heading defines a cell which contains the heading for a row or column
<td> table data defines each cell containing the table's data that is not a heading
Table Attributes
Name Values Description
scope "row", "col", "colgroup", used in table header cells to describe if the header is for a row or a column or a group of columns
colspan integers ("1,2,3...") used to make a table cell span multiple columns
rowspan integers ("1,2,3...") used to make a table cell span multiple rows
Below is another example table using different elements and features.
NFC North Rankings 2025 Season
Record Total Touchdowns Point Differential Turnover Differential
1st Place Bears (11-6-0) Lions (57) Lions (+68) Bears (+22)
2nd Place Packers (9-7-1) Bears (49) Packers (+31) Lions (+4)
3rd Place Vikings (9-8-0) Packers (44) Bears (+26) Packers (+1)
4th Place Lions(9-8-0) Vikings (35) Vikings (+11) Vikings (-9)
Totals 38-29-1 185 133 18