HTML Table Reference

Table Tags

Tag Name Description
<table> Table The wrapper element for all HTML tables.
<thead> Table Head The set of rows defining the column headers in a table.
<tbody> Table Body The set of rows containing actual table data.
<tr> Table Row The table row container.
<td> Table Data The table row container.
<tfoot> Table Foot The set of rows defining the footer in a table.

Table Attributes

Attribute Name Description
<colspan> Column Span Defines how many columns a td element should span.
<rowspan> Row Span Defines how many rows a td element should span.

CSS Table Reference

CSS selectors

Declarations Example Description
Font Size font-size: 30px; The font-size CSS property is used to set text sizes. Font size values can be many different units or types such as pixels.
Background Color background-color: blue; Defines how many rows a td element should span.
Text Align text-align: right; The text-align CSS property can be used to set the text alignment of inline contents. This property can be set to these values: left, right, or center.