Page 132 - CA_165_V2.0_Flipbook
P. 132
<HTML>
<HEAD>
<TITLE> Working with Table</TITLE>
</HEAD>
<BODY BGCOLOR = "YELLOW">
<TABLE BORDER = "2" WIDTH = "85%" HEIGHT = "25%">
<TR>
<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:
Table Width and Height.
BGCOLOR Attribute
This attribute is used to assign background colour to the entire table. The possible values of this attribute
is same as the value of BGCOLOR of BODY attribute. Syntax to use the BGCOLOR attribute is as follows:
<TABLE BGCOLOR = "Value">
For example:
<TABLE BGCOLOR= "LIME">
130 Touchpad Computer Applications-X

