An HTML table with a table cell that spans two columns:
![]()
The colspan attribute is supported in all major browsers.
Note: Only Firefox supports colspan="0", which have a special meaning (look below in the "Attribute Values" table).
The colspan attribute defines the number of columns a cell should span.
NONE.
| Value | Description |
|---|---|
| number | Specifies the number of columns a cell should span. Note: colspan="0" tells the browser to span the cell to the last column of the column group (colgroup) |
HTML <td> tag
Your message has been sent to W3Schools.