ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

17-HTML Background

HTML background  attribute is used to specify a background image for a document. Usually, when we think of an HTML background,it only have two options: either a background image or a solid background color. Both the background image and color follow the size they are contained in.

 

Example:

<html>
<body>
<table height=”225″ width=”300″ background=”http://itsourcecode.com/wp-content/uploads/2015/10/logo-300×293.png” cellspacing=”0″ cellpadding=”0″>
<tr>
<td>This is my background image.
</td>
</tr>
</table>
</body>
</html>

 

 

Result:

bgimage

 

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!