Table part 2

The border and colspan Attributes



A border can be added using the border attribute:<table border="2">
A table cell can span two or more columns:
<table border="2">
<tr>
<td>Red</td>
<td>Blue</td>
<td>Green</td>
</tr>
<tr>
<td><br /></td>
<td colspan="2"><br /></td>
</tr>
</table>
Try It Yourself

Result:
The border attribute is not supported in HTML5.

Comments