[ BACK | BORDER | ALT | WIDTH | ALIGN | HSPACE | CENTER | IMAGEMAPS ]
To insert your picture onto a web page, use the IMG tag:
<IMG>
|
IMG is
SRC.
SRC stands for "source".
You must identify the filename or URL for the image.
Below is the code to load an image called "sunset.jpg" onto your web page.
Example
<IMG SRC="sunset.jpg">
|
IMG SRC), but
never any space between the attribute and the value, just the equal
(=) sign:
(SRC="sunset.jpg").
In addition there is NOT a closing
</IMG> tag.![]()
IMG SRC.
<A HREF="http://howdyyall.com">
|
<A HREF="http://howdyyall.com">
|
![]()
ALT attribute, you can have the browser open a text box over the picture
and describe the picture, a link, other information.
The ALT attribute was originally used for non-graphical browsers.
Since pictures would not display, HTML programmers provided text to describe what the user is missing.
The value of the ALT attribute is any sting of text.
Example
<A HREF="http://howdyyall.com">Go to Howdy Y'all .com">
</A>
|
![]()
WIDTH attribute,
and the HEIGHT attribute.
WIDTH
HEIGHT
BOTH
<IMG SRC="sunset.jpg" WIDTH="300">
|
![]()
ALIGN attribute specifies the
way the image is aligned in its space and the side to which text should wrap.
Values for ALIGN include ABSMIDDLE,
ABSBOTTOM, BASELINE,
BOTTOM, CENTER,
MIDDLE, LEFT,
RIGHT, TEXTTOP
and TOP.
Example
<IMG SRC="sunset.jpg" ALIGN="RIGHT">
|
<IMG SRC="sunset.jpg" ALIGN="RIGHT" HSPACE="10">
|
![]()
<IMG SRC> tag can be nested within other tags, such as the
<CENTER> tag, the <TD> tag within a table,
or even inside a lists, heading, or marquee.
<CENTER><IMG SRC="sunset.jpg"></CENTER>
|
![]()
<IMG SRC="sunset.jpg" USEMAP=#mymapfile BORDER="0">
|
![]()
For complete information on the IMG tag and attributes go to htmlhelp.com