Computer Applications

How is spacing in cells controlled?

HTML Advanced Features

1 Like

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>

Answered By

1 Like


Related Questions