George and Susan Welcome to our HTML help page!
Home | HTML-Index | Basic HTML | HTML Structure

ADD A CAPTION


The <CAPTION> tag lets you add a caption to a table.

By default, most Web browsers display captions centered above a table.


EXAMPLE

Type this:
down
<TABLE BORDER=3 ALIGN=CENTER>
<CAPTION>Sample Table</CAPTION>
<TR>
<TD ALIGN=CENTER>
your text or image</TD>
</TR>
</TABLE>


And you get the following:
down
Sample Table
your text or image





Using the <ALIGN> attribute with the bottom value allows you to have a caption appear below your table.


EXAMPLE

Type this:
down
<TABLE BORDER=3 ALIGN=CENTER>
<CAPTION ALIGN=BOTTOM>Sample Table</CAPTION>
<TR>
<TD ALIGN=CENTER>
your text or image</TD>
</TR>
</TABLE>


And you get the following:
down
Sample Table
your text or image


My home page
Back to Top