HTML Background

We can give different Background color in HTML.

Here we can use <bgcolor=” “> tag to color in the Background of the page. Normally we can give bgcolor in the body tag of HTML.

  Example of HTML Background Color:-

 

<html>
<head>
<title>How to set Background of page.
</title></head>
<body bgcolor="#FACC2E">
<p>Paragraph tag of page.</p>
<p>Second Paragraph tag of page.</p>
<h1 style=background-color:#3ADF00;>H1 Heading tag of page.</h1>
<h2 style=background-color:#BF00FF;>H2 Heading tag of page.</h2>
<h3 style=background-color:#FF0000;>H3 Heading tag of page.</h3>
</body>
</html>

 

Result of HTML Background color :-

Html background




Follow Us

Contact Us

tutorialworldin@yahoo.com

Back to Top