Note: Read and write property. Set the number of columns in a table that <td> or <th> element will span. Syntax: document.getElementById("elementID").colSpan = value document.all.elementID.colSpan = value // IE only