iframe height Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:iframe

Description

The height attribute specifies the height of an <iframe>, in pixels.

Attribute Values

Value Description
pixels The height of the inline frame in pixels (e.g. height="100")

An <iframe> with a specified height and width of 200 pixels:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<iframe src="https://www.java2s.com/style/demo/Opera.png" width="200" height="200">
<p>Your browser does not support iframes.</p>
</iframe><!--from  w ww .j  av a 2s  . com-->

</body>
</html>

Related Tutorials