div background colour code example
Example 1: turn a div green
div {
background-color: green;
}
Example 2: background color using css
/* To apply color to background you have to use 'background-color' property and value of property is color name. */
html,body {
background-color: blue;
}
Example 3: how to change background color in css
body{
background: lightblue;
}