HTML table markup tutorial (37): background image attribute BACKGROUND

HTML table markup tutorial (37): background image attribute BACKGROUND

Set the background image for the table header. You can use any GIF or JPEG image file.
Basic syntax
<TH BACKGROUND=FILE_name>
Syntax explanation <br />When defining a background image, write down the full path or relative path of the image file.
File example: 10-35.htm
Set the background image of the table header.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-35.htm -->
03 <!-- File Description: Set the background image of the header -->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the background image of the 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 Graphics Software</TH><TH>Fireworks</TH>
14 </TR>
15 <TR>
16 <TD>Web page creation 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>
File description <br />Line 13 defines the background image of the header as 10-8.jpg.

<<:  Tomcat uses thread pool to handle remote concurrent requests

>>:  WeChat applet custom bottom navigation bar component

Recommend

Practical operation of using any font in a web page with demonstration

I have done some research on "embedding non-...

Detailed explanation of loop usage in javascript examples

I was bored and sorted out some simple exercises ...

Ubuntu starts the SSH service remote login operation

ssh-secure shell, provides secure remote login. W...

Detailed explanation of Nginx status monitoring and log analysis

1. Nginx status monitoring Nginx provides a built...

How to use CSS attribute selectors to splice HTML DNA

CSS attribute selectors are amazing. They can hel...

Solution to the problem of session failure caused by nginx reverse proxy

A colleague asked for help: the login to the back...

Detailed explanation of the concept, principle and usage of MySQL triggers

This article uses examples to explain the concept...

3 Tips You Must Know When Learning JavaScript

Table of contents 1. The magical extension operat...

How to display web pages properly in various resolutions and browsers

The key codes are as follows: Copy code The code i...

How to use a game controller in CocosCreator

Table of contents 1. Scene layout 2. Add a handle...

A brief discussion on the types of node.js middleware

Table of contents Overview 1. Application-level m...

How to change the terminal to a beautiful command line prompt in Ubuntu 18

I reinstalled VMware and Ubuntu, but the command ...

In-depth explanation of MySQL common index and unique index

Scenario 1. Maintain a citizen system with a fiel...