CSS Backgrounds
With CSS you can set colors, gradients, and images as the background of an element.
It is possible to specify various combinations of images, colors, and gradients, and adjust the size, positioning, and repetition (among others) of these.
Syntax -
Now we will look at the syntax - background keyword is used to change the background of an element.
We study five properties we will study in CSS-background which is mentioned as follows
- Background-image
- Background-repeat
- Background-attachment
- Background-position
- Background (shorthand property)