The tag used to display images is IMG. As with other tags, IMG offers many attributes that allow the page creator more control over where and how the image will appear.

Basic Syntax: <IMG attribute> (Where attribute is one or more of the following)
Attribute Description
SRC="URL" Defines the source of the associated image file. (Where URL is the location of the graphic to be displayed.
ALT=value Defines a text string to be displayed by a browser if inline graphic support is not available. (Where value is the text to be displayed)
ALIGN=value Aligns the image in reference to the text as. (Where value is one of the following)

TOP

  • Aligns the top of the image with the line's text
MIDDLE
  • Aligns the middle of the image with the line's text
BOTTOM
  • Aligns the bottom of the image with the line's text
LEFT
  • Aligns the graphic along the left hand margin and allows text to flow beside the image
RIGHT
  • Aligns the graphic along the right hand margin and allows text to flow beside the image
TEXTTOP
  • Aligns the top of the image with top of the tallest text on the line
ABSMIDDLE
  • Aligns the middle of the image with the middle of the line's text
BASELINE
  • Aligns the bottom of the image with the baseline of the line's text
ABSBOTTOM
  • Aligns the bottom of the image with the bottom of the line's text
HSPACE=n Defines the space along the horizontal edges of an inline graphic between the graphic and adjacent text. (Where n is the blank space in pixels)
VSPACE=n Defines the space along the vertical edges of an inline graphic between the graphic and the adjacent text. (Where n is the blank space in pixels)
WIDTH=n Defines the width of the inline image for the convenience of the browser. (Where n is the desired width of the image in pixels)
HEIGHT=n Defines the height of the inline image for the convenience of the browser. (Where n is the desired height of the image in pixels)
BORDER=n Determines the size of the border for an inline image. Used with an image pointing to a link.
LOWSRC="URL2" Defines a low resolution version of the inline image to be displayed at initial retrieval of the document before the primary image is retrieved. (Where URL2 is the location of the low resolution graphic.