English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <iframe> height-Eigenschaft

Dieser Artikel beschreibt die HTML iframe height-Eigenschaft, die die Höhe des <iframe> in Pixeln festlegt, zeigt Online-Beispiele, wie man die HTML iframe height-Eigenschaft verwendet, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen zu seinen Eigenschaftswerten.

 HTML <iframe> Tag

Online example

Set iframe width to 450 pixels, height280 pixels:

<iframe src="https://de.oldtoolbag.com/" width="450" height="280"></iframe>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the height attribute.

Definition and usage

The height attribute of <iframe> specifies the height in pixels.

HTML 4.01 with HTML5differences

In HTML 4.01In this syntax, the height can be defined in pixels or as a percentage of the containing element. In HTML5In this value, it must be specified in pixels.

Syntax

<iframe height="pixels">

Attribute value

ValueDescription
pixelsThe height of the inline frame in pixels (for example "100px
 HTML <iframe> Tag