Explain CellSpacing and Cellpadding?

CELLSPACING controls the space between table cells. Although there is no official default, browsers usually use a default of 2.
CELLPADDING sets the amount of space between the contents of the cell and the cell wall. The default is 1.

CELLPADDING is usually more effective than CELLSPACING for spreading out the contents of the table.

Hi,
The cellpadding attribute specifies the space, in pixels, between the cell wall and the cell content.
The cellspacing attribute specifies the space, in pixels, between cells.

Don't use table cellpadding and cellspacing HTML attributes. Use CSS padding and margin instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.