Version: Level 2
Compability: IE5+
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
The border-collapse property allows you to choose the border model for a table. This property is inherited.
There are two types of table border models, collapse and separate. (Not all browsers support both models.)
This is one of five Level 2 properties that specifically apply style to tables. The other four are border-spacing, caption-side, empty-cells, and table-layout.
<table style="border-collapse: collapse" border="5">
<tr><td>Cell 1</td><td>Cell 2</td></tr>
<tr><td>Cell 3</td><td>Cell 4</td></tr>
</table>
<table style="border-collapse: separate" border="5">
<tr><td>Cell 1</td><td>Cell 2</td></tr>
<tr><td>Cell 3</td><td>Cell 4</td></tr>
</table>Here is the code for the above two tables.