HTML Background Images
A background image can be specified for almost any HTML element.
Bacground Imagage on a HTML element
To add a background image on an HTML element, use the HTML style attribute and the CSS background-image property:
Example:
Add a background image on a HTML element:
You can also specify the background image in the <style> element, in the <head> section:
Example:
Specify the background image in the <style> element:
p {
bacground-image: url('img.jpg');
}
</style>
If you want the entire page to have a background image, you must specify the background image on the <body>