asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > COLSPAN Attribute

colspan Attribute


Sets or retrieves the number of columns spanned by the current cell.

Applies To: TD   TH

Syntax

Inline <element COLSPAN = iCount...>
Script object.colSpan = iCount ]

Possible Values

iCount Integer specifying the number of columns to span.

The property is read/write with a default value of 1.

Remarks

This attribute specifies how many columns in the TABLE the object should span. Specifying a zero value means that the cell spans all columns from the current column to the last column of the column group in which the cell is defined.

This property can only be changed after the page has been loaded.

Applies To

TD, TH

See Also

rowSpan, Using Tables


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note