body 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: css background color

body {
  background-color: green;
}

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

body {
  /* this changes the page's background to green  */
  background-color: green;
}

Example 5: how to change the background in html

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

Example 6: html change background color of page

<body bgcolor="some color">
 HTML goes here
</body>

Tags:

Css Example