background-color: ***;

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O

The background-color property specifies the background color of an element.

Applying this property to the BODY element applies the specified style to background of an entire page.


body {
background-color: gray;
}

Property Value Explanation
background-color color code or name the color of the background

The default is "transparent".

Example


<html>
<head>
<title>TAG index</title>

<style type="text/css">

body {
background-color: #ffdab9;
color: #000000;
}

</style>

</head>
<body>



</body>
</html>

Output
Example pagenew window