HTML 4.0 Logo Reader Icon OEB 1.0 Logo PPC Logo <img />Image

This singleton tag places an inline image within the text. The image must be formatted as either a .jpg, .gif, or .png.

You can specify image sizes as percentages of the active area of the page, as pixel counts, or by using CSS mechanisms.

Width and height attributes expressed as percentages are treated as percentages with respect to the block element immediately containing them, which is often the page area. Pixel-based sizes are generally discouraged because the resulting layout does not scale well as the content is moved to different sized displays, or is rendered together with different user-chosen font-sizes.

You can make images into block-level elements using the display: block CSS property.

For more information, see Images.

Attributes

align, alt (ignored), border, class, height, hspace, id, longdesc (ignored), lang, lowsrc (ignored), src, style, title (ignored), usemap (ignored), vspace, width

© 2000 Microsoft Corporation. All rights reserved. Terms of use.