colSpan attribute (td, th)
Sets how many columns wide a cell should be.
If you want to change how many rows high the cell should be, use the rowSpan attribute.
Integer that sets the number of columns to span.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the colSpan attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments