HTML span Attribute

❮ HTML Attributes


		<col style="background-color:red">
		<col span="2" style="background-color:yellow">
		<th>First Name</th>
		<th>Last Name</th>


Specifies the number of columns a <col>/<colgroup> element should span. (default value is 1)

Standard Syntax

<element span="number">

Browser Support


Applies to:

The span attribute can be used on the following element:

Element Attribute
<col> span
<colgroup> span

Attribute Values

Value Description
number Specifies the number of columns should span.(default value is 1)
❮ HTML Attributes