Horje
How to change body Background Color HTML Style

The CSS background-color property defines the background color for an HTML element.


Sample of code about Background Color HTML Body Style

Set the background color for a page to powderblue:
<body style="background-color:powderblue;">

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>

Full Example of Background Color HTML Body Style

Here is used the code on full html page.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Output should be:

Full Example of Background Color HTML Body Style





Category:
Web Tutorial
Sub Category:
HTML Styles
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference