contents.gifindex.gifprev1.gifnext1.gif

pueblo00000000.gif <img> element

The Image element is used to incorporate in-line graphics (typically icons or small graphics) into an HTML document. This element cannot be used for embedding other HTML text.

Web Tracker supports GIF, BMP, and JPG image files.

Attributes

ALIGN

The ALIGN attribute can have one of the following values: left, right, top, texttop, middle, absmiddle, baseline, bottom, and absbottom. The values left and right are somewhat different from the others in that these two values create a floating images that the text then wraps around.

align=left will float the image down and over to the left margin (into the next available space there), and subsequent text will wrap around the right hand side of that image.

align=right will align the image aligns with the right margin, and the text wraps around the left.

align=top aligns itself with the top of the tallest item in the line.

align=texttop aligns itself with the top of the tallest text in the line (this is usually but not always the same as align=top).

align=middle aligns the baseline of the current line with the middle of the image.

align=absmiddle aligns the middle of the current line with the middle of the image.

align=baseline aligns the bottom of the image with the baseline of the current line.

align=bottom aligns the bottom of the image with the baseline of the current line.

align=absbottom aligns the bottom of the image with the bottom of the current line.

ISMAP

The ISMAP (is map) attribute identifies an image as an image map. Image maps are graphics in which certain regions are mapped to URLs. By clicking on different regions, different resources can be accessed from the same graphic.

SRC
HREF

The value of the SRC attribute is the URL of the document to be embedded; only images can be embedded, not HTML text. (Web Tracker allows the HREF attribute as a synonym for the SRC attribute.) Its syntax is the same as that of the HREF attribute of the <A> element. Image elements are allowed within anchors.

BORDER

This lets the document author control the thickness of the border around an image displayed.

Warning: Setting ‘border=0’ on images that are also part of anchors may confuse your users as they are used to a colored border indicating an image is an anchor.

The default border thickness is 2.

WIDTH
HEIGHT

The WIDTH and HEIGHT attributes were added to <img> mainly to speed up display of the document. If the author specifies these, the viewer of their document will not have to wait for the image to be loaded over the network and its size calculated.

VSPACE
HSPACE

For the floating images it is likely that the author does not want them pressing up against the text wrapped around the image. VSPACE controls the vertical space above and below the image, while HSPACE controls the horizontal space to the left and right of the image.

ALT
LOWSRC

These attributes are not currently supported by Web Tracker.

Also see

<a> (anchor)

<br clear=...>

Using image maps with worlds