CBSE Class 10 Computer Applications Question 32 of 81

Images, Links and Tables — Question 4

Back to all questions
4
Question

Question 4

How is spacing in cells controlled?

Answer

Spacing in cells is controlled by the following attributes of the <TABLE> tag.

  1. Cellspacing — It gives the amount of space between cells.
  2. Cellpadding — It gives the amount of space between the cell border and the cell contents.

Consider the following example,

<TABLE BORDER = "3" CELLSPACING = "1" CELLPADDING = "1">
<TR> 
<TD> Fruits </TD> 
<TD> Vegetables </TD> 
</TR>
<TR> 
<TD> Mango, Apple, Banana </TD> 
<TD> Potato, Aubergine, Gourd  </TD> 
</TR>
</TABLE>