HTML CSS Reference/HTML Attributes Reference/span
"span" Example
<HTML>
<head><Title>Example For span</Title></head>
<BODY>
<table border="3" cellspacing="5" cellpadding="5">
<colgroup>
<col span="3" align="left" style="color:red; font-weight:bold">
<col span="1" align="center" style="color:green">
<col span="2" align="right" style="color:blue">
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
<td>Column 4</td>
<td>Column 5</td>
<td>Column 6</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
<td>Cell 6</td>
</tr>
</table>
</BODY>
</HTML>
span is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<col> <colgroup> |
+----------------+--------------------------------------------------------------+
"span" Syntax and Note
Note:
This attribute sets the number of columns in a group.
Its default value is 1.
Syntax:
<element span="value">