HTML height attribute
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>
</>
Height specifies the height of iframe
Attribute values
All possible values of height attributeThe value of this attribute is a valid positive integer.
Related Tags
The tags that support height attribute<embed> tag
-
embed tag embeds content in a page.
-
<embed src="files/start.html" height="400px" width="100%">
Try</> <iframe> tag
-
iframe tag adds an inline frame in a page.
-
<iframe src="files/demo.html" height="400px"> </iframe>
Try</> <object> tag
-
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
-
video tag adds video in a page.
-
<video src="files/Hummingbird.mp4" height="350px" controls> </video>
Try</>
Next Previous
Was this article helpful?