Example
<p>Height specifies the height of iframe </p>
<iframe src="files/start.html" height="400px" width="100%" >
</iframe>
Try </>
Web development courses to make an interactive and responsive website.
height attribute specifies the vertical dimension (height) of the image, video, iframe, embed, object and div type elements.
<p>Height specifies the height of iframe </p>
<iframe src="files/start.html" height="400px" width="100%" >
</iframe>
Try </>
The value of this attribute is a valid positive integer.
The tags which support this attribute are as follows.
embed tag embeds content in a page.
<embed src="files/start.html" height="400px" width="100%">
Try</>
iframe tag adds an inline frame in a page.
<iframe src="files/demo.html" height="400px"> </iframe>
Try</>
img tag adds an image in a page.
<img src="files/web.png" height="400px">
Try</>
This element embeds external resources such as media, image, content to be processed by the plugin.
<object data="files/start.html" height="400"> </object>
Try</>
video tag adds video in a page.
<video src="files/Hummingbird.mp4" height="350px" controls> </video>
Try</>
Was this article helpful?
Email:
Message:
Get the newsletter