Home | Previous | Next Introduction to the Web And HTML

IMG Element Attributes

SRC="url"
Specifies the URL for the image file to be loaded.
ALT="text string"
Specifies a text string to use in place of the image when image loading is turned off. You should always specify this
HEIGHT="num", WIDTH="num"
Give height and width (in pixels, or width as % of display area) of the images. You should always specify these
ALIGN="alignment value"
Specifies how the image should align with the text, or how it should "float" on the page (to left, or right).
HSPACE="number", VSPACE="number"
Specifies the horizontal or vertical space, in pixels, to pad around the image.
BORDER="number"
Specifies the width of a border around the image, in pixels.

Home | Previous | Next Introduction to the Web And HTML