Easy Tutorial
❮ Prop Fieldset Name Prop Style Textdecorationline ❯

IFrame height Attribute


Definition and Usage

The height attribute sets or returns the value of the height attribute in an iframe element.

The height attribute specifies the height of the iframe in pixels or as a percentage.

Syntax

The height attribute can have the following values:

Value Description
pixels The height attribute unit can be in pixels (e.g., "100px" or "100")
% The height attribute unit can be a percentage (e.g., "20%")

Browser Support

All major browsers support the height attribute.


Example

Change the height and width of an iframe:

❮ Prop Fieldset Name Prop Style Textdecorationline ❯