The background-color property sets the background color of an element. The color is drawn behind any background images.
Example – background-color
In the following code, CSS property background-color can be changed to the following values
- lightgray
- lightblue
- #888
<style type="text/css"> body { background-color: lightgray; } </style> <div> Hello world </div>
background-color refresh