ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

14-HTML Background Color [bgcolor]

In HTML element, you can set the background color by using the bgcolor attribute. And this attributeĀ specifies the background color of an HTML document.

 

Syntax:

<html>

<body bgcolor="color">

</body>

</html>

Example of hex color:

<html>
<body bgcolor="#0000FF">
<h1>Hello world......</h1>
<p><a href="http://itsourcecode.com/">Visit itsourcecode.com</a></p>
</body>
</html>

Example of text color:

<html>
<body bgcolor="blue">
<h1>Hello world......</h1>
<p><a href="http://itsourcecode.com/">Visit itsourcecode.com</a></p>
</body>
</html>
Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!