HTML table tag tutorial (27): cell background image attribute BACKGROUND

HTML table tag tutorial (27): cell background image attribute BACKGROUND

We can set a background image for the cell, and we can use any GIF or JPEG image file.
Basic syntax
<TD BACKGROUND=FILE_name>
Syntax explanation <br />When defining a background image, write down the full path or relative path of the image file.
Document example: 10-25.htm
Sets the background image of the cell.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-25.htm -->
03 <!-- File Description: Set the background image of the cell-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the background image of the cell</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 <TD Background=10-8.jpg>Web Graphics Software</TD><TD>Fireworks</TD>
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 cell as 10-8.jpg.

<<:  Summary of front-end knowledge in the Gokudō game

>>:  Implementation of Docker container connection and communication

Recommend

Detailed tutorial of using stimulsoft.reports.js with vue-cli

vue-cli uses stimulsoft.reports.js (nanny-level t...

Introduction to ApplicationHost.config (IIS storage configuration area file)

For a newly created website, take ASP.NET MVC5 as...

Tips for making web table frames

<br />Tips for making web table frames. ----...

3 codes for automatic refresh of web pages

In fact, it is very simple to achieve this effect,...

Explanation of the usage of replace and replace into in MySQL

MySQL replace and replace into are both frequentl...

js canvas realizes rounded corners picture

This article shares the specific code of js canva...

Disable input text box input implementation properties

Today I want to summarize several very useful HTML...

How to hide and forge version number in Nginx

1. Use curl command to access by default: # curl ...

Get the IP and host name of all hosts on Zabbix

zabbix Zabbix ([`zæbiks]) is an enterprise-level ...

Introduction to useRef and useState in JavaScript

Table of contents 1. useState hook 2. useRef hook...

Detailed explanation of the basic usage of the img image tag in HTML/XHTML

The image tag is used to display an image in a we...

How to implement two-way binding function in vue.js with pure JS

Table of contents First, let's talk about the...

Solve the problem of not finding NULL from set operation to mysql not like

An interesting discovery: There is a table with a...

Win10 + Ubuntu20.04 LTS dual system boot interface beautification

Effect display The built-in boot interface is too...