Sunday, April 2, 2017

HTML Background Color

The background-color property defines the background color for an HTML element.
This example sets the background color for a page to powderblue:

<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">

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

</body>
</html>


No comments:
Write comments

Recommended Posts × +