Skip to content
Related Articles
Open in App
Not now

Related Articles

How to set height of an iframe element using HTML ?

Improve Article
Save Article
  • Last Updated : 26 Nov, 2020
Improve Article
Save Article

The iframe in HTML stands for Inline Frame. The “iframe” tag defines a rectangular region within the document in which the browser can display a separate document, including scrollbars and borders. An inline frame is used to embed another document within the current HTML document.

The HTML <iframe> height attribute is used to specify the height of the <iframe> in terms of pixels.


<iframe height="pixels">



<!DOCTYPE html>
        How to specify the height of an
        iframe element using HTML?
<body style="text-align:center;">
    <h1 style="color:green;">
        How to specify the height of an
        iframe element using HTML?
    <iframe src=
            height="100" width="400">


Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!