top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How Do I Add A Caption To A Table?


You can add a caption to summarize the information in a table.

How to do it

You can add a caption to your table easily.

First place a <CAPTION> tag directly below your <TABLE> tag.

Next, type the caption you want the table to display.

Finally finish it all off with an ending </CAPTION> tag.

Your code should look something like this:

<TABLE>
<CAPTION>Your Caption Goes Here</CAPTION>
<TR>
<TH>Team</TH>
<TH>Games</TH>
<TH>Wins</TH>
<TH>Losses</TH>
</TR>
<TR>
<TD>Eagles</TD>
<TD>5</TD>
<TD>5</TD>
<TD>0</TD>
</TR>
<TR>
<TD>Jets</TD>
<TD>5</TD>
<TD>4</TD>
<TD>1</TD>
</TR>
<TR>
<TD>Little Giants</TD>
<TD>4</TD>
<TD>2</TD>
<TD>2</TD>
</TR>
</TABLE>



Seeing this in the browser looks like this:

Your Caption Goes Here
Team Games Wins Losses
Eagles 5 5 0
Jets 5 4 1
Little Giants 4 2 2



< BACK







Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
© 2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!