As already explained in my previous article that, Border-collapse property allows you to quickly create formatted tables using plain HTML markup. The border-collapse property sets the table borders are collapsed into a single border or detached as in standard HTML.
There are two types of border-collapse property, border-collapse:collapse; and border-collapse:separate;
Border-collapse:collapse: the border-collapse property allows borders to collapse to be applied to table row’s (TR's) and table column’s (TD's).
The code below created two tables, horizontal table and verticale table. The tables are marked TH for headings and TD for content inside the <tbody> tag.
The styles below have been applied to two tables below output. The tables are marked TH for headings and TD for content.
Using the standard TABLE model you'd have to set the background colours, color, borders and text alignment for each row or cell. There are two borders given, the solid borders around the rows over-ride and the dotted borders around cells.
The border-collapse property of a table to collapse, you can add individual borders to any rows or cells in that table.