This mark can directly add the title of the table, and the arrangement properties of the title text can be controlled.
Basic syntax<Caption>…</Caption>
Syntax explanationThe content of the title is between the <Caption> tags, which is used in the <table> tag.
File example: 10-14.htmSet the title of the table with the <Caption> tag.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-14.htm -->
03 <!-- File description: Set the title of the table-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the title of the table</TITLE>
08 </HEAD>
09 <BODY>
10 <TABLE BORDER=3 WIDTH=400 HEIGHT=100 Bordercolor=#336699 ALIGN=CENTER>
11 <CAPTION>Mainstream web design software</CAPTION>
12 <TR>
13 <TD>Web Image Software</TD>
14 <TD>Fireworks</TD>
15 </TR>
16 <TR>
17 <TD>Web page production software</TD>
18 <TD>Dreamweaver</TD>
19 </TR>
20 <TR>
21 <TD>Web animation software</TD>
22 <TD>Flash</TD>
23 </TR>
24 </TABLE>
25 </BODY>
26 </HTML>
Document descriptionLine 11 defines the title text of the table.