Top Description Methods
org.w3c.dom.html

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 Summary

Modifier and TypeMethod and Description
public String
getAlign()

Aligns this object (vertically or horizontally) with respect to its surrounding text.

public String
getAlt()

Alternate text for user agents not rendering the normal content of this element.

public String
getBorder()

Width of border around image.

public String
getHeight()

Override height.

public String
getHspace()

Horizontal space to the left and right of this image.

public boolean
getIsMap()

Use server-side image map.

public String
getLongDesc()

URI designating a long description of this image or frame.

public String
getLowSrc()

URI designating the source of this image, for low-resolution output.

public String
getName()

The name of the element (for backwards compatibility).

public String
getSrc()

URI designating the source of this image.

public String
getUseMap()

Use client-side image map.

public String
getVspace()

Vertical space above and below this image.

public String
getWidth()

Override width.

public void
public void
public void
setBorder(String border)

public void
setHeight(String height)

public void
setHspace(String hspace)

public void
setIsMap(boolean isMap)

public void
setLongDesc(String longDesc)

public void
setLowSrc(String lowSrc)

public void
public void
public void
setUseMap(String useMap)

public void
setVspace(String vspace)

public void
Inherited from org.w3c.dom.html.HTMLElement:
getClassNamegetDirgetIdgetLanggetTitlesetClassNamesetDirsetIdsetLangsetTitle

Method Detail

getAlignback to summary
public 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.

getAltback to summary
public String getAlt()

Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0.

getBorderback to summary
public String getBorder()

Width of border around image. See the border attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

getHeightback to summary
public String getHeight()

Override height. See the height attribute definition in HTML 4.0.

getHspaceback to summary
public 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.

getIsMapback to summary
public boolean getIsMap()

Use server-side image map. See the ismap attribute definition in HTML 4.0.

getLongDescback to summary
public String getLongDesc()

URI designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.0.

getLowSrcback to summary
public String getLowSrc()

URI designating the source of this image, for low-resolution output.

getNameback to summary
public String getName()

The name of the element (for backwards compatibility).

getSrcback to summary
public String getSrc()

URI designating the source of this image. See the src attribute definition in HTML 4.0.

getUseMapback to summary
public String getUseMap()

Use client-side image map. See the usemap attribute definition in HTML 4.0.

getVspaceback to summary
public 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.

getWidthback to summary
public String getWidth()

Override width. See the width attribute definition in HTML 4.0.

setAlignback to summary
public void setAlign(String align)
setAltback to summary
public void setAlt(String alt)
setBorderback to summary
public void setBorder(String border)
setHeightback to summary
public void setHeight(String height)
setHspaceback to summary
public void setHspace(String hspace)
setIsMapback to summary
public void setIsMap(boolean isMap)
setLongDescback to summary
public void setLongDesc(String longDesc)
setLowSrcback to summary
public void setLowSrc(String lowSrc)
setNameback to summary
public void setName(String name)
setSrcback to summary
public void setSrc(String src)
setUseMapback to summary
public void setUseMap(String useMap)
setVspaceback to summary
public void setVspace(String vspace)
setWidthback to summary
public void setWidth(String width)