Set the background color of the first two columns to red:
The span property sets or returns the value of the span attribute of a column.
The span attribute defines the number of columns a <col> element should span.
The span property is supported in all major browsers.
Return the span property:
Set the formMethod property:
Value | Description |
---|---|
number | Specifies the number of columns a <col> element should span. Negative values are not allowed |
Return Value: | A Number, representing the number of columns |
---|
Return the number of columns a <col> element should span:
The result of x could be:
HTML reference: HTML <col> span attribute