HTML table markup tutorial (15): table titles

Time:2022-6-13

With this tag, you can directly add the title of the table and control the arrangement properties of the title text.
Basic grammar

<Caption>…</Caption>

Grammatical interpretation

Between the <caption> tags is the content of the title. This tag is used in the <table> tag
File example: 10-14 htm

Set the title of the table through the <caption> tag.
01 <!– —————————— –>
02 <!– Document 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 making 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 description

Line 11 defines the title text of the table.