Saturday 22 October 2016

HTML Styles

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:

Post a Comment