Search code examples
htmlcss

Background-image in body?


I am tasked with adding a background image for a home page. However, I do not have access to the CSS file associated with the HTML document I am working on (3rd party company created/has that file). The document I am working with consists of the HTML code's body.

Is it possible to add a background image within the body of an HTML document? (All the examples I have seen add it in the head)


Solution

  • <body style="background-image: url(#);">

    This should do the trick for you!