In HTML language, you can automatically add titles to tables by marking them. In addition, the first row of the table is called the header, which can also be achieved through HTML tags.
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>
...........
</TABLE>
Syntax explanation
Define the width of the border line through the BORDER property, in pixels.
<html>
<head>
<title>Comprehensive example of table marking</title>
</head>
<body>
<table border=1 width=80% bgcolor=#e8e8e8 cellpadding=2 bordercolor=#0000ff bordercolorlight=7d7dff bordercolordark=#0000a0>
<tr>
<th width=30% colspan=2 valign=bottom>Atlantic Division</th>
<th width=30% colspan=2 valign=bottom>Central Division</th>
<th width=30% colspan=2 valign=bottom>Southeast Division</th>
</tr>
<tr>
<td width=16% align=center>Celtic</td>
<td width=16% align=center>76 people</td>
<td width=17% align=center>piston</td>
<td width=17% align=center>bull</td>
<td width=17% align=center>Heat</td>
<td width=17% align=center>wizard</td>
</tr>
<tr>
<td width=16% align=center>net</td>
<td width=16% align=center>Knicks</td>
<td width=17% align=center>Pacer</td>
<td width=17% align=center>Knight</td>
<td width=17% align=center>Magic</td>
<td width=17% align=center>Boncat</td>
</tr>
<tr>
<td width=16% align=center>Raptors</td>
<td width=16% align=center>Crossing the river</td>
<td width=17% align=center>Bucks</td>
<td width=17% align=center>Chicago</td>
<td width=17% align=center>Eagle</td>
<td width=17% align=center>Yao Ming</td>
</tr>
</table>
</body>
</html>
where <TH></TH> refers to the header and title of the table.