HTML Table Spacing
By default, 2px space is set between the table border and cell border, and between two adjacent cell borders. We can change this spacing using CSS border-spacing
property.
Assign a valid CSS Length unit to border-spacing, like 10px, 1em, etc.
Examples
Border Spacing of 20px
In the following example, we set the border-spacing of 20px to the table.
index.html
ADVERTISEMENT
Conclusion
In this HTML Tutorial, we learned about HTML table border spacing, with examples.