<iframe src="">

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

The iframe creates an inline frame within the document.


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

The difference between FRAMESET and IFRAME

FRAMESET

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

IFRAME

IFRAME example
Creates frames within the body of the document.
Example pagenew window

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