colspan attribute | colSpan property
Sets or retrieves the number columns in the table that the object should span.
![]() |
Syntax
| HTML | <element colspan="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: Integer
the number of columns to span.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 11.2.6
Remarks
This property can be changed only after the page has been loaded.
Windows Internet Explorer 8 will only render tables up to 1000 columns. To force Windows Internet Explorer 7 rendering mode, see How Do I Take Advantage of the New Features in Internet Explorer 8.
See also
Show:
