Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Tables

<CAPTION ...>

  • ALIGN: alignment of caption to table
 
  • VALIGN: if caption should be above or below table

<CAPTION ...> sets a caption for the table. <CAPTION ...> goes just after the <TABLE ...> tag. It does not go inside a <TR ...>, <TD ...> or <TH ...> element. there should be only one <CAPTION ...> per table. For example, this code creates a table with a caption of "Favorite Foods":

<TABLE BORDER=2 CELLPADDING=3>
<CAPTION>Favorite Foods</CAPTION>
<TR> <TH>Person</TH> <TH>Food</TH> </TR>
<TR> <TD>Ping</TD> <TD>French Toast</TD> </TR>
<TR> <TD>Andy</TD> <TD>Squirrel</TD> </TR>
</TABLE>

which gives us this table:

Favorite Foods
PersonFood
Ping French Toast
AndySquirrel

<CAPTION ...> is rarely used even though virtually every browser in use these days supports it.

<CAPTION ALIGN="..."> >>>

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com