How to add a background to a website

A background image can be specified for almost any HTML element.

Background Image on a HTML element

To add a background image on an HTML element, use the HTML style attribute and the CSS background-image property:


Add a background image on a HTML element:

You can also specify the background image in the