HTML Reference Doc

HTML Tables

Tag

Purpose

<table> Encloses all elements in a table
<tr> Defines a table row
<th> Defines a header cell (column or row)
<td> Defines a cell (column or row)
<thead> Encloses header content in a table
<tbody> Encloses body content in a table
<tfoot> Encloses footer content in a table
<caption> Defines a table caption
<colgroup> Encloses table columns for formatting
<col> Targets column properties within a <colgroup>
span, colspan, rowspan Attributes for table elements