Interface HTMLImageElement

All Superinterfaces:
Element, HTMLElement, Node

public interface HTMLImageElement extends HTMLElement
Embedded image. See the IMG element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Since:
1.4, DOM Level 2
  • Method Details Link icon

    • getLowSrc Link icon

      String getLowSrc()
      URI designating the source of this image, for low-resolution output.
    • setLowSrc Link icon

      void setLowSrc(String lowSrc)
    • getName Link icon

      String getName()
      The name of the element (for backwards compatibility).
    • setName Link icon

      void setName(String name)
    • getAlign Link icon

      String getAlign()
      Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setAlign Link icon

      void setAlign(String align)
    • getAlt Link icon

      String getAlt()
      Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0.
    • setAlt Link icon

      void setAlt(String alt)
    • getBorder Link icon

      String getBorder()
      Width of border around image. See the border attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setBorder Link icon

      void setBorder(String border)
    • getHeight Link icon

      String getHeight()
      Override height. See the height attribute definition in HTML 4.0.
    • setHeight Link icon

      void setHeight(String height)
    • getHspace Link icon

      String getHspace()
      Horizontal space to the left and right of this image. See the hspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setHspace Link icon

      void setHspace(String hspace)
    • getIsMap Link icon

      boolean getIsMap()
      Use server-side image map. See the ismap attribute definition in HTML 4.0.
    • setIsMap Link icon

      void setIsMap(boolean isMap)
    • getLongDesc Link icon

      String getLongDesc()
      URI designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.0.
    • setLongDesc Link icon

      void setLongDesc(String longDesc)
    • getSrc Link icon

      String getSrc()
      URI designating the source of this image. See the src attribute definition in HTML 4.0.
    • setSrc Link icon

      void setSrc(String src)
    • getUseMap Link icon

      String getUseMap()
      Use client-side image map. See the usemap attribute definition in HTML 4.0.
    • setUseMap Link icon

      void setUseMap(String useMap)
    • getVspace Link icon

      String getVspace()
      Vertical space above and below this image. See the vspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
    • setVspace Link icon

      void setVspace(String vspace)
    • getWidth Link icon

      String getWidth()
      Override width. See the width attribute definition in HTML 4.0.
    • setWidth Link icon

      void setWidth(String width)