height

Jump to: navigation, search

height

This article is Not Ready.


W3C Candidate Recommendation

Summary

Specifies the height of the certain content elements in pixels.


Applies to HTMLInputElement

The height attribute specifies the visual height of img, iframe, embed, object, video, and input[type="image"] in pixels.

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.

Compatibility

There is no data available for topic "html", feature "height". If you think that there should be data available, consider opening an issue.

Examples

View live exampleAn image with an explicit height and width set.

HTML

<img src="http://www.webplatform.org/logo/wplogo_transparent_xlg.png" height="100" width="150">




See also

Related articles

HTML















  • height




































… further results

Multimedia







  • height






Visual Effects















  • height



Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]