Easy Tutorial
❮ Att Global Style Att Video Poster ❯

HTML <iframe> height Attribute

HTML <iframe> Tag

Example

Specify an <iframe> with both height and width set to 200 pixels:


Browser Support

All major browsers support the height attribute.


Definition and Usage

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


Differences Between HTML 4.01 and HTML5

In HTML 4.01, the height should be defined in pixels or as a percentage of the containing element. In HTML5, the height value must be in pixels.


Syntax

Attribute Values

Value Description
pixels The height of the inline frame in pixels (e.g., "100px").

❮ Att Global Style Att Video Poster ❯