HTMLImageElement Interface


The HTMLImageElement Interface represents an embedded image.
IDL Definition

Interface HTMLImageElement : HTMLElement {

           attribute  DOMString                  lowSrc;
           attribute  DOMString                  name;
           attribute  DOMString                  align;
           attribute  DOMString                  alt;
           attribute  DOMString                  border;
           attribute  DOMString                  height;
           attribute  DOMString                  hspace;
           attribute  boolean                    isMap;
           attribute  DOMString                  longDesc;
           attribute  DOMString                  src;
           attribute  DOMString                  useMap;
           attribute  DOMString                  vspace;
           attribute  DOMString                  width;
};

Semantic Requirements

  1. The lowSrc attribute is the URI designating the source of this image, for low-resolution output.
  2. The name attribute contains the name of the element.
  3. The align attribute aligns this object (vertically or horizontally) with respect to the surrounding text.
  4. The alt attribute alternates text for user agents not rendering the normal content of this element.
  5. The border attribute contains the width of border around the image.
  6. The height attribute overrides height.
  7. The hspace attribute is the horizontal space to the left and right of this image.
  8. The isMap attribute indicates the use of a server-side image map.
  9. The longDesc attribute contains a URI designating a long description of this image or frame.
  10. The src attribute contains URI designating the source of this image.
  11. The useMap attribute contains the used client-side image map.
  12. The vspace attribute contains the vertical space above and below this image.
  13. The width attribute overrides width.

If you have comments or suggestions, email me at mbrady@nist.gov