Background-Image
The background-image property is used to specify a background image to be applied to all matched elements.
By default, this image is tiled to cover the entire element, excluding the margin.
Syntax -
We can apply background image using the following syntax -
background-mage : url(image.png) |
Now we will see Examples -
Example 1 -
Output -
Example 2 -
We can also add image as the background of paragraph as well
Output -