background color for html code example
Example 1: html background color
<html>
<body style="background-color:red;">
<p> test <p/>
<body/>
</html>
Example 2: html change background color
<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">
</body>
</html>
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>