The title of the table can be placed above or below the table, which can be adjusted by properties. The default table title is placed above the table.
Basic syntax<Caption VALIGN=top>…</Caption>
<Caption VALIGN=bottom> …</Caption>
Syntax explanationTOP is the top, BOTTOM is the bottom.
File example: 10-16.htmSet the vertical alignment of the table title through the VALIGN attribute marked with the <CAPTION>.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-16.htm -->
03 <!--File description: Set the vertical alignment of the table title-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set vertical alignment of table title</TITLE>
08 </HEAD>
09 <BODY>
10 <TABLE BORDER=3 WIDTH=400 HEIGHT=100 Bordercolor=#336699 ALIGN=CENTER>
11 <CAPTION VALIGN=BOTTOM ALIGN=RIGHT>Mainstream web design software</CAPTION>
12 <TR>
13 <TD>Web Image Software</TD><TD>Fireworks</TD>
14 </TR>
15 <TR>
16 <TD>Web page production software</TD><TD>Dreamweaver</TD>
17 </TR>
18 <TR>
19 <TD>Web animation software</TD><TD>Flash</TD>
20 </TR>
21 </TABLE>
22 </BODY>
23 </HTML>
Document descriptionLine 11 defines the table title text that is right-aligned at the bottom.