Roots
Back

HTML Background

Background Color

You can set the background color for the whole of the page by using the bgcolor attribute of the <body> tag.

<body bgcolor="name / code">

name - The name of a color, such as aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, or yellow.
code - The hexadecimal code for a color.

Background Image

You can also set a background image in a similar way, using the background attribute.

<body background="url">

url - The full or relative address of the image to use as a background.