<IFRAME> is an HTML 4.0 addition to the frames toolbox. Now only MSIE supports <IFRAME>. Unlike frames created via <FRAMESET> & <FRAME>,
<IFRAME> develop a frame which sits in the middle of a regular non-framed web page.
<IFRAME> works such as <IMG>, only rather than putting a picture on the page, it puts another web page.
For instance, suppose inside the same directory as this page there is a file called "hello.html". This code puts hello.html into an inline frame:
<IFRAME SRC="hi.html" WIDTH=450 HEIGHT=100>
If you can view this, your browser does not understand IFRAME. Though, we'll still link <A HREF="hi.html">link</A> you to the file. </IFRAME> that gives us this inline frame: Here's what the code means:
IFRAME
The name of the <IFRAME> tag
SRC="hi.html"
The URL of the document to illustrates in the inline frame. WIDTH=450 HEIGHT=100
The dimensions of the inline frame.
If you can view this, your browser doesn't understand IFRAME. Though, we'll still
<A HREF="hello.html">link</A> you to the file.
Code among <IFRAME> & </IFRAME> is not displayed through browsers which understand <IFRAME>. Browsers that do not understand <IFRAME> will display this code (since they don't know how to avoid it).
You can do most of the things along with <IFRAME> which you can do with regular frames, together with setting the internal margins, frame border and setting information on scroll bars. You can employ the attribute so that you can set links to the target frame.