change background colour html code example

Example 1: html background color

<html>
 
<body style="background-color:red;">
  <p> test <p/> 
  <body/>
  </html>

Example 2: how to make a background color in html

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

</body>

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: change background of html

<body style="background-color: color or #hexcode here;">

Example 5: html change background color of page

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

Example 6: background-color html

background-color=red;

Tags:

Css Example