Page 130 - CA_165_V2.0_Flipbook
P. 130
</TR>
<TR>
<TD> INDIA GATE </TD>
<TD> GATEWAY OF INDIA </TD>
<TD> VICTORIA MEMORIAL </TD>
<TD> Fort St. George </TD>
</TR>
</TABLE>
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
Space between cell
border and cell content.
Notes
The CELLPADDING attribute of <TABLE> tag is not supported in HTML5.
CELLSPACING Attribute
This attribute is used to specify the space between cells. The spacing can be increased or decreased by
specifying the value in number with this attribute. Syntax to use the CELLSPACING attribute is as follows:
<TABLE BORDER = "Value" CELLSPACING="Value">
For example:
<TABLE BORDER="2" CELLSPACING="10">
The following HTML code uses the <TABLE> tag with the BORDER and CELLSPACING attributes to create
a table with two rows and four columns, showcasing cities and their landmarks:
<HTML>
<HEAD>
<TITLE> Working with Table</TITLE>
</HEAD>
<BODY BGCOLOR = "YELLOW">
<TABLE BORDER = "2" CELLSPACING = "10">
<TR>
128 Touchpad Computer Applications-X

