<IMG ALIGN="value" ALT="alternate text" BORDER=#
HEIGHT=# HSPACE=# LOWSRC="URL" SRC="URL"
�UNITS="unit type" WIDTH=#
VSPACE=# ISMAP="server map URL" USEMAP="client map URL">
Although you may hear otherwise, the only required attribute of the <IMG> tag is SRC.
This text in your HTML file: | results in this: | |
---|---|---|
<IMG SRC="./rose.gif" ALIGN="TOP">Here is some sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="TOP"> sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="MIDDLE">Here is some sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="MIDDLE"> sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="BOTTOM">Here is some sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="BOTTOM"> sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="LEFT">Here is some sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
Here is some <IMG SRC=".rose.gif" ALIGN="LEFT"> sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="RIGHT">Here is some sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="RIGHT"> sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="TEXTTOP"> Here is some sample
text. This is after a line break. | Here is some sample
text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="TEXTTOP"> sample
text. This is after a line break. | Here is some
sample text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="ABSMIDDLE">Here is some sample
text. This is after a line break. | Here is some
sample text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="ABSMIDDLE"> sample
text. This is after a line break. | Here is some
sample text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="BASELINE">Here is some sample
text. This is after a line break. | Here is some
sample text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="BASELINE"> sample
text. This is after a line break. | Here is some
sample text. This is after a line break. | |
<IMG SRC="./rose.gif" ALIGN="ABSBOTTOM">Here is some sample
text. This is after a line break. | Here is some
sample text. This is after a line break. | |
Here is some <IMG SRC="./rose.gif" ALIGN="ABSBOTTOM"> sample
text. This is after a line break. | Here is some
sample text. This is after a line break. |
The format is the same as a regular anchor, with an image tag put in place of text, like so:
<A HREF="#TopAnchor"><IMG SRC="./happy.gif"></A>
Simple, huh?
The image will be tiled in the background, and will overlay any "BGCOLOR" setting that you may have set. The format of the <BODY> tag now looks like this:
<BODY BACKGROUND="./pink_fabric.gif">
and the result looks like this.