Definition: Through use of <IMG>, in-line graphics (small graphics or icons, usually) can be incorporated into an HTML document.
Standard Attributes: CLASS, ID, LANG, SRC, MD
WIDTH is the image's optional suggested width. It is given in pixels by default.
HEIGHT is the image's optional suggested height. It is given in pixels by default.
UNITS, which is an optional attribute, specifies what units are to be used for the height and width attributes. It is one of units=en (half the point size) or units=pixels (the default)
ALIGN can take values TOP or MIDDLE or BOTTOM. It thereby indicates which part of the graphic should be aligned with the baseline for the text line containing the IMG element.
ALIGN=LEFT will make the graphic float down and over into the current left margin, and any subsequent text will wrap around the graphic's right hand side. Similarly, ALIGN=RIGHT will make the graphic align with the right margin and wrap text around the left. It is advisable to use the FIG element rather than this feature to represent larger graphics.
ALT (Alternate text)
ALT is optional alternative text. It serves as an alternative to the graphics for those using text-only environments. Although the alt text may contain entities for special symbols or accented characters, it cannot contain any markup (although this is possible with the FIG element).
ISMAP is an attribute that identifies an image as an image map (an image map is a graphical map that allows users to navigate transparently between information sources). It is possible to use the IMG element as part of the label for a hypertext link (such as in an anchor element). By clicking on the image, the user sends the location clicked to a server designated by the hypertext link.
Context: <IMG> is legal within
<A>, <ABBREV>, <ACRONYM>, <ADDRESS>, <AU>, <B>, <BANNER>, <BIG>, <BODY>, <BODYTEXT>, <CAPTION>, <CITE>, <CODE>, <CREDIT>, <DD>, <DEL>, <DFN>, <DIV>, <DT>, <EM>, <FIGTEXT>, <FN>, <FORM>, <H1>, <H2>, <H3>, <H4>, <H5>, <H6>, <I>, <INS>, <KBD>, <LANG>, <LH>, <LI>, <NOTE>, <P>, <PERSON>, <Q>, <S>, <SAMP>, <SMALL>, <STRONG>, <SUB>, <SUP>, <TD>, <TH>, <TT>, <U>, <VAR>
The following markup can be used within <IMG>: None
Suggested style/usage: Close Tag: OPTIONAL
Examples: <IMG SRC="images/trans001.gif">