Images are often used in the content of websites, but they are frequently used in the design of a page as textures, background-images and borders. When used as a design element, images are placed on the page using CSS.
We use the
background property to apply a background image to a page. A background image is contained within the total size of an element which includes padding but not the margin. The
body is an exception to this rule.