IMG Element | IMG Object

DHTML, HTML, & CSS

IMG Element | IMG Object


Embeds an image or a video clip in the document.

HTML Syntax

<IMG
    ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | 
        MIDDLE | RIGHT | TEXTTOP | TOP 
    ALT=text
    BORDER=n
    CLASS=classname
    DATAFLD=colname
    DATASRC=#ID
    DYNSRC=url
    HEIGHT=n
    HSPACE=n
    ID=value
    ISMAP
    LANG=language
    LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT  | VBS 
    LOOP=n
    LOWSRC=url
    NAME=name
    SRC=url
    STYLE=css1-properties
    TITLE=text
    USEMAP=url
    VSPACE=n
    WIDTH=n
    event = script
>

Remarks

This element does not fire the onfocus event when it receives the input focus, unless it has been associated with a MAP element.

The IMG element is an inline element and does not require a closing tag.

This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

Members

Styles

Example

This example uses the IMG element to embed a bitmap image (.bmp file) on a page.

<IMG SRC=mygraphic.bmp>

See Also

INPUT


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.