--- title: Body Background Attribute --- ## Body Background Attribute If you want to add a background image instead of a color, one solution is the `` attribute. It specifies a background image for an HTML document. Syntax: `` Attribute: `background - URL for background image` Example: ```html ``` ## body-background attribute is depreciated the body-background attribute been deprecated in HTML5. The correct way to style the `````` tag is with CSS. There are several CSS properties used for setting the background of an element. These can be used on to set the background of an entire page. ## Check it Out: * [CSS background proprety](https://github.com/freeCodeCamp/guides/blob/master/src/pages/css/background/index.md)