The CSS background property is used to define the background effect of an HTML element. There is 5 CSS background property that used to change the background property.
CSS background-color is used to change the background color of an HTML element.
The background-image property is used to add a background image of an HTML element.
By default, the background-image property repeats the background image horizontally and vertically. Some images are repeated only horizontally or vertically.
The background looks better if the image repeated horizontally only.
The background-attachment property is used to define that the background image is fixed or scroll with the rest of the page in the browser window. If you set fixed the background image then the image will not move during scrolling in the browser.
The background-position property is used to specify the initial position of the background image. The background image is placed on the top-left of the webpage by default.
The CSS border is used to set a border for an HTML element. The CSS border specifying the style, color, size of the border.