Notice:
The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

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.

Examples

An image with an explicit height and width set.




See also

Related articles

HTML











  • height


















































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]