Table data

td

The td element defines a single cell of a table row. It is the wrapper for any text or other elements that comprise the cell.

The "td" semantax is implied when it appears as an immediate descendent of a "tr" element. You can omit the semantax in these cases.

Properties

colspan
The number of columns that this td element spans.
rowspan
The number of rows that this td element spans.
headers
The ID of the column header "th", or the row header "th" (or both), that this cell is associated with. When associated with more than one, separate the IDs with spaces.

Examples

table {
tr {
td AR
td Argentina
}
tr {
td BE
td Belgium
}
tr {
td CA
td Canada
}
}
Table using explicit "td" semantax

table {
tr {
AR
Argentina
}
tr {
BE
Belgium
}
tr {
CA
Canada
}
}
Table using implied "td" semantax
0

semantax > row-column > tdTable data

🔗 🔎