HTML <iframe> height attribute
Definition and usage
height
The attribute specifies the height of the <iframe> in pixels.
Default height is 150 pixels.
Example
Define the height and width of a 200-pixel <iframe>:
<iframe src="/index.html" width="600" height="600"> </iframe>
Syntax
<iframe height="pixels">
Attribute value
Value | Description |
---|---|
pixels | Inline frame height (in pixels) (e.g., '100px' or '100'). |
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |