CSS border collapse property is used to define the border of table to display collapsible.

HTML table tag when use to show table, By default, is a display as separate border model. The separate border model is a double border effect to display table. By default the border is separate format but if you want it collapse you can use this.


Syntax

Output

heading1 heading2
row1, column1 row1, column2
row2, column1 row2, column2

CSS border collapse values list

Sr. No. value Description
1 collapse This is Used to specify a table to display with collpase model. The value for this is collapse.
2 separate This is Used to specify a table to display with separate model. The value for this is separate.
3 initial Used to define as the property initial value.
3 inherit Used to define the computed value of property on the elements parent.

Leave a Reply

Your email address will not be published. Required fields are marked *