change html background color 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 how to change background color

<body style="background-color:powderblue;">
<p style="background-color:tomato;">This paragraph has a red background.</p>
</body>

Example 3: how to change the background in html

<body style="background-color: anything you want">
	[insert 10000 lines of code here]
  
</body>

Example 4: 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!*/

Tags:

Misc Example