HTML Reference Guide


Tag Index| Content List| HTML FAQ

<IMG> ... </IMG> IMAGE

Description:

This tag includes an image in your webpage.There are many attributes for the image tag.

Attributes:

src - specifies the location of the image file to be displayed.

width - specifies the width of the image.

height - specifies the height of the image.

border - specifies a border width (in pixels) when an image is used as a hyperlink.

alt - gives text explanation to the image if the person is not loading images or using a non-graphical browser.

lowsrc - names an optional image to load first and faster before the larger image loads.

usemap - if using a client-side image map, this specifies what coding to refer to.

Example code:

<IMG SRC="image.gif">

Result:

Example code:

<IMG SRC="image.gif" ALIGN=LEFT>

Result:

         

Example code:

<IMG SRC="image.gif" ALIGN=LEFT WIDTH=25 HEIGHT=25">

Result:

Our Button Bar 

Example code:

<IMG SRC="image.gif" ALIGN=LEFT WIDTH=25 ALT="Our Button Bar">

Result:

Our Button Bar 

Example code:

<IMG SRC="image.gif" ALIGN=LEFT WIDTH=25 HEIGHT=25 ALT="Our Button Bar" USEMAP="#buttonbar">

Result:

Our Button Bar 

See Also: