HTML Background
The HTML background tag can be used in a variety of places.
<body background=/images/logo.jpg>
<table background=/images/logo.jpg><tr>
<td background=/images/logo.jpg>
-The first tag <body> will make your entire page have the background image specified.
-The second tag, the
HTML tables tag, will make your entire table have the background image specified.
-The third tag <td> will make your entire table cell have the background image specified.
NOTE: The HTML background tag inside the table row <tr> doesn't work on Windows IE6.
The path to your image can be relative or a full url.
Relative URLs:
-Remember the forward slash / will start the relative path in your serving directory.
-No forward slash means start in the directory the html page is in.
-dot dot slash ../ means goes up one directory.
Full URL:
-http://ilovethecode.com/images/iltc.gif is an example of a full url.
Just for fun:
To make your background image fixed or to stop it from repeating, write in a style tag with these properties:
<body background=/images/logo.jpg style="background-attachment:fixed; background-repeat:no-repeat;">
Resources:
W3C's Official background documentation
The Classic BareBones Guide to HTML
HTML Tables
Make Italic Text Using HTML
Make Text Bold Using HTML
Make Strikethrough Text Using HTML
Make a Line Return Using HTML
Make a New Paragraph Using HTML
HTML Codes
HTML Gary B. Shelly, Th... | | |
| | | |
| | | |