how to change the background color in css code example

Example 1: background color css

html,body {
  background-color: red;
}

Example 2: css change background color of page

/* Use the following code: */
html {background-color: #fefefe;} 
/* You can change the hexedecimal code to RGB, RGBA, name & more colors!*/

Example 3: 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 4: how to change background color in css

body{
  background: lightblue;
}

Example 5: backgroud color css

background-color: blue;

Tags:

Misc Example