Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Image height property

Image height property

Image Object Reference Image Object


Definition and Usage

The height property sets or returns the value of the height attribute of an image.

The height attribute specifies the height of the image.

Syntax

imageObject.height=

pixels


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the height property


Example

Example

The following example sets the height and width of the image:

Runoob Tutorial(runoob.com)



Try it »


Image Object Reference Image Object