HTML Attribute - colspan

The HTML attribute colspan is used to define the number of columns a table cell should span.

Used for:

<th>
Defines a table header cell
<td>
Defines a table cell

Examples:

<table border="1"> <tr> <th>Col 1</th> <th colspan="2">Col 2 & 3</th> </tr> <tr> <td>Col 1</td> <td>Col 2</td> <td>Col 3</td> </tr> </table> <table border="1"> <tr> <th>Col 1</th> <th>Col 2</th> <th>Col 3</th> </tr> <tr> <td>Col 1</td> <td colspan="2">Col 2 & 3</td> </tr> </table>