Page 135 - CA_165_V2.0_Flipbook
P. 135
<TABLE BORDER = "2" BGCOLOR = "LIME">
<TR>
<TH> PHOTO </TH>
<TH> FIRST NAME </TH>
<TH> LAST NAME </TH>
<TH> ADDRESS</TH>
</TR>
<TR>
<TD> <IMG SRC ="SANJANA.JPG" WIDTH = 100 HEIGHT = 100></TD>
<TD> SANJANA </TD>
<TD> JAIN </TD>
<TD> RANCHI </TD>
</TR>
</TABLE>
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
Image as the
content of a cell.
Spanning of Columns and Rows
The columns and rows of a table can be spanned (merged) by using COLSPAN and ROWSPAN attributes.
COLSPAN attribute is used to merge the specified number of columns in one cell whereas, ROWSPAN
attribute merges specified number of rows in one cell. Syntax to use the COLSPAN and ROWSPAN
attributes is as follows:
<TABLE >
<TR> <TH COLSPAN= "Value"> Text </TH> </TR>
<TR> <TH ROWSPAN= "Value">Text </TH> </TR>
More About HTML 133

