Background Color in HTML

Submitted by:Jhon Smith

Date added:18 October, 2012

Category:HTML

HTML style example code for background color

Tags: background color

Code Snippet:

<!DOCTYPE html>
<html>

<body style="background-color:yellow;">
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a paragraph.</p>
</body>

</html>
 
 

Comments