HTML Background Color Code For Website - Learn About Website | DaddyFile

0

HTML Background Color Explain

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



Html Code:

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

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

</body>
</html>



Html Code Result:


Post a Comment

 
Top