height
Summary
Specifies the height of the certain content elements in pixels.
Applies to | [HTMLInputElement](/html/elements/img) |
---|
If a height attribute is set, but no width, the image will scale to preserve its original aspect ratio.
Height values must be non-negative integers.
Examples
An image with an explicit height and width set.
<img src="/logo/wplogo_transparent_xlg.png" height="100" width="150">
See also
Related articles
HTML
height
Multimedia
Visual Effects
height
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]