Page 131 - CA_165_V2.0_Flipbook
P. 131
<TD> DELHI </TD>
<TD> MUMBAI </TD>
<TD> KOLKATA</TD>
<TD> CHENNAI</TD>
</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 the cells.
Notes
The CELLSPACING attribute of <TABLE> tag is not supported in HTML5.
WIDTH and HEIGHT Attributes
These attributes are used to specify the size of the table. The value of Width and Height can be specified
by using an absolute value (in number or pixel) or a relative value (in percentage). Syntax to use the
WIDTH and HEIGHT attributes is as follows:
<TABLE BORDER = "Value" WIDTH="Value" HEIGHT="Value">
For example:
<TABLE BORDER="2" WIDTH="85%" HEIGHT="25%">
The following HTML code uses the <TABLE> tag with the BORDER, WIDTH, and HEIGHT attributes to
create a table with specified dimensions:
More About HTML 129

