The cell spacing property in CSS is used to set the space between the cells. We can set the space in pixels between each cell in the table. We can set the cell spacing using the border-spacing
property.
HTML
Line 4: We write the content in the h1
tag.
Lines 5 to 26: We make a table with 3 columns, Name
, Profession
, and Age
. Then, we add the information to the table.
CSS
The cell padding is used to specify the amount of space between the content of the cells and their border.
HTML
Line 4: We write the content in the h1
tag.
Lines 5 to 26: We make a table with three columns, Name
, Profession
, and Age
. Then we add the information to the table.
CSS