The <TH> tag has two optional extensions: ROWSPAN=someNumber and COLSPAN=someNumber. There are used when you want to have an extra long or extra wide table header.
Colors | Food | People | |
---|---|---|---|
I like | Purple | Toffee | Friends |
Dont like | Yellow | Squash | Psychos |
Source for Simple Table:
<TABLE><CAPTION>Example of a Simple Table with no Border:</CAPTION> <TR><TH><TH>Colors<TH>Food<TH>People <TR><TH ALIGN=LEFT>I like<TD>Purple<TD>Toffee<TD>Friends <TR><TH ALIGN=LEFT>Dont like<TD>Yellow<TD>Squash<TD>Psychos </TABLE><P>
average | other category | ||
---|---|---|---|
height | weight | ||
males | 1.9 | 0.003 | yyy |
females | 0.002 | xxx |
Source for Complicated Table 1:
<TABLE BORDER><CAPTION>Example Table 1:</CAPTION> <TR> <TH ROWSPAN=2> <!--this one is just empty--> <TH COLSPAN=2>average <TH ROWSPAN=2>other <BR>category <TR> <TH>height<TH>weight</TR> <TR> <TH ALIGN=LEFT>males <TD>1.9 <TD>0.003 <TD ALIGN=CENTER>yyy <TR> <TH ALIGN=LEFT>females <TD>1.7 <TD>0.002 <TD ALIGN=CENTER >xxx </TABLE> <P>
average | other category | ||
---|---|---|---|
height | weight | ||
males | 1.9 | 0.003 | yyy |
females | 1.7 | 0.002 | xxx |
Source for Complicated Table 2:
<TABLE BORDER=5><CAPTION>Example Table 2:</CAPTION> <TR> <TH ROWSPAN=2> <!--this one is just empty--> <TH COLSPAN=2>average <TH ROWSPAN=2>other <BR>category <TR> <TH>height<TH>weight</TR> <TR> <TH ALIGN=LEFT>males <TD>1.9 <TD>0.003 <TD>yyy <TR> <TH ALIGN=LEFT>females <TD>1.7 <TD>0.002 <TD>xxx </TABLE> <P>
![]() |
Source for Using Tables to Frame Images:
<TABLE BORDER=10> <CAPTION>Using Tables to Frame Images</CAPTION><TR> <TD ALIGN=CENTER> <IMG SRC="flower.gif"> <P> </TABLE>