Horje

How to add HTML <iframe> height Attribute

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

Definition and Usage

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

The default height is 150 pixels.

Browser Support

Syntax

<iframe height="pixels">

Attribute Values

Value Description
pixels The height of the inline frame in pixels (e.g. height="100")
index.html
Example: HTML
<iframe src="https://horje.com/learn/683/what-is-html-iframe-tag" width="200" height="200">

Output should be:

How to add HTML <iframe> height Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin