Page 136 - CA_165_V2.0_Flipbook
P. 136
</TABLE>
The following HTML code uses the <TABLE> tag with the BORDER, BGCOLOR, COLSPAN, and ROWSPAN
attributes to create a table with merged cells and a lime-colored background:
<HTML>
<HEAD>
<TITLE> Working with Table</TITLE>
</HEAD>
<BODY BGCOLOR = "YELLOW">
<TABLE BORDER = "2" BGCOLOR = "LIME">
<TR>
<TH ROWSPAN = "2" > <IMG SRC ="SANJANA.JPG" WIDTH = 100
HEIGHT = 100> </TD>
<TH COLSPAN = "3">PERSONAL DETAILS </TH>
</TR>
<TR>
<TD> SANJANA </TD>
<TD> JAIN </TD>
<TD> RANCHI </TD>
</TR>
</TABLE>
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
Two rows merged Three columns
together. merged together.
Font Size, Color, Font Name and Aligning Text in a Cell
Font size, color, font name and alignment of text can also be changed in a table by using <FONT> and
<ALIGN> attribute which are used with <TH> and <TD> tags.
<TABLE>
<TR> <TH ALIGN= "left/right/center">
134 Touchpad Computer Applications-X

