menu search
brightness_auto
more_vert
0 1

Differentiate between cellpadding and cellspacing in HTML table.

Topic Working with tables in HTML
Type Short answers
Class 10

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
0
Cellpadding  Cellspacing
It is used for formatting purpose which specifies the space between the edges of the cells and also in the cell contents. It is one also used for formatting purpose but it sets space between cells.
The general format of specifying cellpadding in HTML is as follows: <TABLE width="100" border ="2" cellpadding="5"> The general format of specifying cellspacing in HTML is as follows: <TABLE width="100" border="2" cellspacing ="20">
The default value of cellpadding attribute is 1. The default value of cellspacing attribute is 2.

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

Related questions

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
Welcome to Aiforkids, where you can ask questions and receive answers from other members of the community.

Want to chat with us or clear doubts on Insta?? Just ping us... - @lalitkofficial

Subscribe Aiforkids at - Youtube
...