background-image

The CSS background-image property sets the background images for an element. The images are drawn on successive stacking context layers, with the first specified being drawn as if it is the closest to the user. The borders of the element are then drawn on top of them, and the background-color is drawn beneath them.
 
How the images are drawn relative to the box and its borders is defined by the background-clip and background-origin CSS properties.
 
If a specified image cannot be drawn (for example when the file denoted by the specified URI cannot be loaded), browsers handle them as if it was the none value.

Syntax

background-image: none
background-image: url(http://www.example.com/images/bck.png)
background-image: inherit

Example

<!DOCTYPE HTML>
<html>
    <head>
        <title>CSS Tutorials</title>
        <style>
            body {
                background-image: url("images/darkpattern.png");
            }
            
            div {
                background-image: url("images/foo.png"), url("images/bar.png");
            }
            
            p {
                background-image: none;
            }
        </style>
    </head>
    <body>
        <div>
            i am with two backgrounds foo.png and bar.png
        </div>
        <p>
            I am with no background image
        </p>
    </body>
</html>