Syntax | selector {background-image: value;}
|
---|---|
Usage | The background-image property is used to specify the element's background image. This property is specified by using a URI, or a keyword, according to the syntax shown above. A background-color can also be specified which will be displayed in the event that the background image is not available or if the background image does not occupy the entire background area. |
Keywords |
|
Applies To | All elements |
Inherited | No |
Initial Value | none |
The background-image properties are set for both the <body> tag and the <h1> tag. |