A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/attributes/height below:

height ยท WebPlatform Docs

height Summary

Specifies the height of the certain content elements in pixels.

Applies to [HTMLInputElement](/html/elements/img)

The **height** attribute specifies the visual height of [img](/html/elements/img), [iframe](/html/elements/iframe), [embed](/html/elements/embed), [object](/html/elements/object), [video](/html/elements/video), and [input[type="image"]](/html/elements/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.

<img src="/logo/wplogo_transparent_xlg.png" height="100" width="150">

View live example

See also Related articles HTML Multimedia Visual Effects Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4