In the HTML language, you can automatically add a caption to a table by marking it. In addition, the first row of the table is called the header, which can also be implemented through HTML markup.
Basic Syntax
<table> ....
<tr>
<TH> title 1</th><th> title 2</th><th> title 3</th><th> Title 4</th><th> title 5</th>
</tr>
... The
</table>
Syntax explanation
defines the width, in pixels, of the border line by the border property. A comprehensive example of
<title> table Tags </title>
br> <body>
<tableborder= "1" width= "80%" bgcolor= "#e8e8e8" cellpadding= "2"
Bordercolor= "#0000ff" bordercolorlight= "7D7DFF" bordercolordark= "#0000a0"
<tr>
< Thwidth= "30%" colspan= "2" valign= "bottom" > Atlantic Division </th>
<thwidth= "30%" colspan= "2" valign= "Bottom" > Central Division </th>
<thwidth= "30%" colspan= "2" valign= "bottom" > Southeast Division </th>
</tr>
<tr>
<tdwidth= "16%" align= "center" > Celtic </td>
<tdwidth= 16% "align=" Center ">76 Person </td>
<tdwidth=" 17% "align=" center "> Piston </td>
<tdwidth=" 17% " align= "center" > Bull </td>
<tdwidth= "17%" align= "center" > Heat </td>
<tdwidth= "17 % "Align= Center" > Wizards </td>
</tr>
<tr>
<tdwidth= "16%" align= "center" > Network </td>
<tdwidth= "16%" align= "center" > Nick </td>
<tdwidth= 17% "align=" Center "> Walker </td>
<tdwidth=" 17% "align=" center "> Knight </td>
<tdwidTh= "17%" align= "center" > Magic </td>
<tdwidth= "17%" align= "center" > Bobcat </td>
</tr
<tr>
<tdwidth= "16%" align= "center" > Raptors </td>
<tdwidth= 16% "align=" Center "> Over Jiang </td>
<tdwidth=" 17% "align=" center "> Bucks </td>
<tdwidth=" 17% "align = "center" > Cheese song </td>
<tdwidth= "17%" align= "center" > Eagle </td>
<tdwidth= "17%" align= "center" > Yao Ming </td>
</tr>
</table>
</body>
where <TH></TH> refers to the header and header of the table.