IMG:
Attributes


ALIGN

ALIGN tells the browser how to align the image with the neighbouring text. BOTTOM aligns the bottom of the image with the bottom of text, and is the default. MIDDLE aligns the middle of the image with the middle of text, and TOP aligns the top of the image with the top of text. This attribute is optional.


Value(s)


Default Value

#IMPLIED


ALT

Optional alternative text as an alternative to the graphics for display in text-only environments.


Value(s)

CDATA


Default Value

#IMPLIED


ISMAP

Many servers and browsers also support the ISMAP attribute. This attribute marks the image as an active image map. This allows the user to click the mouse over the image and have different regions of the image cause different actions.

Example:

    <A HREF="http://machine/htbin/imagemap/sample">
    <IMG SRC="sample.gif" ISMAP>
    </A>
    


Value(s)

ISMAP


Default Value

#IMPLIED


SDAPREF

Attribute for easy transformation to the International Committee for Accessible Document Design (ICADD) DTD. ICADD applications are designed to support usable access to structured information by print-impaired individuals through Braille, large print and voice synthesis.


Value(s)

CDATA


Default Value

#FIXED = <Fig><?SDATrans Img: #AttList>#AttVal(Alt)</Fig>


SRC

The value of this attribute is the URL of the document to be embedded. Its syntax is the same as that of the HREF attribute of the A tag. SRC is mandatory.


Value(s)

CDATA


Default Value

#REQUIRED


Back to IMG


HTML 2.0 DTD