Call Spanning multiple Rows/Column


Spanning refers to extending the size of a call either horizontally or vertically over multiple column or rows respectively. Spanned cells can contain headings in a row and their sub-heading in other row.

A cell that spans multiple row or columns is created by using the row Span and cols pan attributes.

1. Row Span: – It specifies the number of rows that can be spanned by a cell. For example, a cell with ROWSPAN = “2” Span two rows. A cell can span multiple row’s by using

<TD ROWSPAN = “No. of rows”>

 

2. Cols span: – It specifies the number of columns that can be spanned by a cell. For example, a cell with cols span = “3” spans three columns syntax

<TD Cols span = “No. of cols”>

Example of a Table

<HTML>

<Head>

<Title> table attribute</Title>

<head>

<Body bgColor=”pink”>

<Center>

<Table border=5 width=50% height=50% align= border>

<Caption><B> personal information</B></Caption>

<TR>

<TH> Name </TH>

<TH>Age</TH>

</TR>

<TR align=center>

<TD>veneeta</TD>

<TD> 23</TD>

</TR>

<TR align=center>

<TD> shefali</TD>

<TD>43</TD>

</TR>

</Table></Center></Body>

</HTML>

Comments are closed.