14-HTML Background Color [bgcolor]

0
318

This tutorial is all about 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>

 

 

Readers might read also:

 

Facebook Comments
(Visited 153 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here