...

/

<iframe>

<iframe>

Learn about iframe tag in HTML.

The iframe tag in HTML creates an inline rectangular frame that allows another HTML document to be embedded inside the current one. In addition, it allows several attributes inside the tag. These attributes control properties such as the webpage to display, height, and width of the frame, allowing scrolling, borders, and margins.

The illustration below shows what is an iframe in HTML:

Syntax

The basic syntax of an iframe tag is a follows:

<iframe> src = "webpage.html" </iframe>

Attributes

...