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

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">



Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

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]