To set the background image for the table header, you can use any GIF or JPEG image file.
Basic syntax<TH BACKGROUND=FILE_name>
Syntax explanationWhen defining the background image, write down the full or relative path of the image file.
File example: 10-35.htmSet the background image of the table header.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-35.htm -->
03 <!-- File description: Set the background image of the table header-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the background image of the table header</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=3 WIDTH=400 HEIGHT=100 Bordercolor=#336699>
12 <TR>
13 <TH Background=10-8.jpg>Web Image Software</TH><TH>Fireworks</TH>
14 </TR>
15 <TR>
16 <TD>Web page production software</TD><TD>Dreamweaver</TD>
17 </TR>
18 <TR>
19 <TD>Web animation software</TD><TD>Flash</TD>
20 </TR>
21 </TABLE>
22 </BODY>
23 </HTML>
Document descriptionLine 13 defines the background image of the table header as 10-8.jpg.