creates an iframe


<iframe src="">

Browser
Internet Explorer Firefox Opera
Type
Inline-block

The iframe creates an inline frame within the document.


<iframe src="example.html"> - </iframe>


The difference between FRAMESET and IFRAME

FRAMESET example FRAMESET
Divides a window into two or more windows.
Example page

IFRAME example IFRAME
Creates frames within the body of the document.
Example page


Defines the alternative content

The content of the IFRAME element is displayed by the browsers that do not support frames.

<iframe src="example.html">
Alternate content
</iframe>


Example

<iframe src="iexample_b.html">
<a href="iexample_b.html">Example page</a>
</iframe>
Output