Style borderCollapse Property
Style borderCollapse Property
The borderCollapse property is used to either set or return whether the table border should be collapsed into a single border or not.
Syntax:-
Its syntax is:- object.style.borderCollapse OR object.style.borderCollapse = separate|collapse|initial|inherit
Return:-
Its return is:- string having the borders of a table
Further Explanation:-
Value | Description |
---|---|
separate | Separate borders are drawn for all table cell elements. |
collapse | Borders are not drawn between table cell elements |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |