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
- The lowSrc attribute is the URI designating the source of this image, for low-resolution output.
- The name attribute contains the name of the element.
- The align attribute aligns this object (vertically or horizontally) with respect to the surrounding text.
- The alt attribute alternates text for user agents not rendering the normal content of this element.
- The border attribute contains the width of border around the image.
- The height attribute overrides height.
- The hspace attribute is the horizontal space to the left and right of this image.
- The isMap attribute indicates the use of a server-side image map.
- The longDesc attribute contains a URI designating a long description of this image or frame.
- The src attribute contains URI designating the source of this image.
- The useMap attribute contains the used client-side image map.
- The vspace attribute contains the vertical space above and below this image.
- The width attribute overrides width.
If you have comments or suggestions, email me at mbrady@nist.gov