HTML <iframe> height Attribute
HTML <iframe> tag
Example
An iframe with a specified height and width:
<iframe src ="/default.asp" width="200"
height="200">
<p>Your browser does not support iframes.</p>
</iframe> |
Try it yourself » |
Definition and Usage
The height attribute specifies the height of an iframe.
Browser Support

The height attribute is supported in all major browsers.
Syntax
Attribute Values
| Value |
Description |
| pixels |
The height in pixels (like "100px" or just "100") |
| percent |
The height in percent of the containing element (like
"20%") |
HTML <iframe> tag
Start Creating a stunning, Flash website. It's easy and free!
Wix is a revolutionary web design tool that provides you with a free, simple,
drag & drop editing platform to create your own professional and beautiful website.
Over 2 Million users have created their website with Wix.
Now create yours!
 |
W3Schools' Online Certification
The perfect solution for professionals who need to balance work, family, and career building.
More than 6000 certificates already issued!
Get Your Certificate »
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|