to clearly distinguish the table structure in the source code, the HTML language provides <thead>, <tbody>, and <tfoot>3 tags, corresponding to the table header, table body, and footer respectively. <thead> tags are used to define the style of the top table in the table. The
Basic Syntax
Syntax explanation
Align represents horizontal alignment, Left of which is in the center, center for the right. valign represents vertical alignment, top for the home, middle for the center, bottom for the next. Example of a
file: 10-44.htm
Sets the table header style by marking.
01<!----------------------------------
02<!--file Example: 10-44.htm-->
03<!-- File Description: Set table table first style
04<!----------------------------------
05
06< Head>
07<title> Set Table table header style </title>
08
09<body>
10 <tableborder=3width=400height=100bordercolor= #336699align = "Center"
11<theadalign= centerbgcolor= #00ccff
12<tr>
13<tdcolspan=2> Web page making software </td>
14</tr
15</thead>
16<tr>
17<td> web image software</td><td>fireworks</td>
18</tr>
19<tr>
20<td> Web page production software </td><td>dreamweaver</td>
21</tr>
22<tr>
23<td> web page animation software </td><td>flash</td>
24</tr>
25</table>
26</body>
The
27
File description
Line 11th defines the style of the table header, and the 15th row sets the table header end.