HTML <iframe> height attribute
Definition and Usage
height
The attribute specifies the height of the <iframe> in pixels.
Default height is 150 pixels.
Example
Specify 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 | The height of inline frames (in pixels) (for example, "100px" or "100"). |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |