Background-color

The background-color property is used to set the background color of an element.

Background-image

We can set the background image by calling local stored images as shown below

Background-position

The following example demonstrates how to set the background image position 100 pixels away from the left side.

Background-attachment

Background attachment determines whether a background image is fixed or scrolls with the rest of the page.
The following example demonstrates how to set the fixed background image.