The background-image property is used to display an image in the background of a web page. The background-image property has the value of ‘none’ as the default value for the web page and can take following values
Value |
Description |
<Image_URL> |
The path to the image file. |
None |
Indicates that no image should be used |
If a background image is indicated then that image tiles across the entire area available to it. It is used as
body
{ background-image: url(logo.jpg); }
{ background-image: url(logo.jpg); }