Tables

Tables


In HTML, a table is an element that allows for the representation of data in two dimensions; these dimensions are columns and rows.

Example

| Name | Location | Category | Founded | CEO | Info | | :

Tables

colspan
Specifies the number of columns a cell should span.
rowspan
Specifies the number of rows a cell should span.
table
Defines an HTML table.
tbody
Groups the body content in a table.
td
Defines a cell in a table that contains data.
tfoot
Groups the footer content in a table.
th
Defines a header cell in a table.
thead
Groups the header content in a table.
tr
Defines a row in a table.
Interested in helping build Docs? Read the Contribution Guide or share your feedback.

Learn HTML on Codecademy