how to make background color html code example

Example 1: how to make a background color in html

<body style="background-color: #fff">
  <!---this will change the body color---!>

</body>

Example 2: html change background color

<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">

</body>
</html>

Example 3: 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 4: css set background color

body {
	background-color: red; 
}