How to set background-image for the body element using CSS ?
In this article, we set the image into the background using CSS property. The background-image property is used to set one or more background images to an element. By default, it places the image on the top left corner. To specify two or more images, separate the URLs with a comma.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
Property value: It holds the URL of an image that you want to use as background image.
- Google Chrome 1.0
- Edge 4.0
- Firefox 1.0
- Opera 3.5
- Safari 1.0