previous | start | next

IMG

<IMG
ALIGN=TOP|MIDDLE|CENTER|BOTTOM|LEFT| RIGHT
ALT=text
BORDER=n
CLASS=type
CONTROLS
DYNSRC=url
HEIGHT=n
HSPACE=n
ID=value
ISMAP=image
LOOP=n
SRC=url
START=start-event
STYLE=css1 properties
TITLE=text
USEMAP=url
VSPACE=n
WIDTH=n>

Inserts an image.

ALIGN=TOP|MIDDLE|CENTER|BOTTOM|LEFT|RIGHT
Sets the alignment of the image or of the surrounding text. The default is TOP.
TOP Surrounding text is aligned with the top of the image.
MIDDLE Surrounding text is aligned with the middle of the image.
CENTER Surrounding text is aligned with the center of the image.
BOTTOM Surrounding text is aligned with the bottom of the image.
LEFT The picture is drawn as a left-flush "floating image," and text flows around it.
RIGHT The picture is drawn as a right-flush "floating image," and text flows around it.
ALT=text
Specifies text that will be displayed in place of the picture if Show Pictures is turned off.
BORDER=n
Specifies the size of a border to be drawn around the image. If the image is a hyperlink, the border is drawn in the appropriate hyperlink color. If the image is not a hyperlink, the border is invisible.
CLASS=type
Indicates the class to which the element belongs.
CONTROLS
If a video clip is present, displays a set of controls under the clip.
DYNSRC=url
Specifies the address of a video clip or VRML world to be displayed in the window. Stands for Dynamic Source.
HEIGHT=n
Along with WIDTH=, specifies the size at which the picture is drawn. If the picture's actual dimensions differ from those specified, the picture is stretched to match what is specified. Internet Explorer also uses this to draw a placeholder of appropriate size for the picture before it is loaded.
HSPACE=n
Along with VSPACE=, specifies margins for the image. Similar to BORDER=, except the margins are not painted with color when the image is a hyperlink.
ID=value
Specifies a unique value for the element over the document.
ISMAP=image
Identifies the picture as a server-side image map. Clicking the picture transmits the coordinates of the click back to the server, triggering a jump to another page.
LOOP=n
Specifies how many times a video clip will loop when activated. If n=-1, or if LOOP=INFINITE is specified, it will loop indefinitely.
SRC=url
Specifies the address of the picture to insert.
START=start-event
Specifies when the file specified by the DYNSRC= attribute should start playing. The start-event can be one of these values:
FILEOPEN Start playing as soon as the file is done opening. This is the default.
MOUSEOVER Start playing when the user moves the mouse pointer over the animation.

Both values can be set but must be separated with a comma.

STYLE=css1 properties
Specifies style information.
USEMAP=url
Identifies the picture as a client-side image map and specifies a MAP to use for acting on the user's clicks.
VSPACE=n
Along with HSPACE=, specifies margins for the image. Similar to BORDER=, except the margins are not painted with color when the image is a hyperlink.
WIDTH=n
Along with HEIGHT=, specifies the size at which the picture is drawn. If the picture's actual dimensions differ from those specified, the picture is stretched to match what is specified. Internet Explorer also uses this to draw a placeholder of appropriate size for the picture before it is loaded.

Example

<IMG SRC=mygraphic.bmp>


previous | start | next