Name
COLSPAN — NN all IE all HTML 3.2
Synopsis
COLSPAN=”columnCount"Optional
The COLSPAN attribute specifies the number of
columns across which the current table cell should extend itself. For
each additional column included in the COLSPAN
count, one less TH or TD
element is required for the table row. If you set the
ALIGN attribute to center or
right, the alignment is calculated on the full
width of the TH element across the specified
number of columns. Unless the current cell is also specifies a
ROWSPAN attribute, the next table row returns to
the original column count.
Example
<TH COLSPAN=2 ALIGN="right">
Value
Any positive integer, usually 2 or larger.
Default
1
Object Model Reference
- IE
[window.]document.all.elementID.colSpan
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access