Tuesday, March 15, 2011

HTML - Cellpadding vs Cellspacing

Note: Do not confuse this with the cellpadding attribute, which specifies the space between the cell wall and the cell content.




Cellpadding - The cellpadding attribute specifies the space between the cell wall and the cell content.
For practical reasons, it may be better not to specify cellpadding, and use CSS to apply padding instead.
http://www.w3schools.com/tags/att_table_cellpadding.asp


Cellspacing - The cellspacing attribute specifies the space between cells.

http://www.w3schools.com/tags/att_table_cellspacing.asp

1 comment:

  1. Since HTML 5 is not supported cell padding and cell spacing better use CSS.

    More about..CSS Cellpadding , Cellspacing

    Ling

    ReplyDelete