How to use Inline Frames


A tutorial for those with Internet Explorer 4


Please note that this page is not intended for HTML beginners. If you don't know a lot about HTML, frames, and IMG tags, then learn about them--they're really cool.

Like I said earlier, IFRAME tags are IMG tags that behave like frames. This allows you to put a frame in a table, or any other HTML object. This allows for great customization.

Here's an example of an inline frame:

<CENTER>
<IFRAME NAME="IFRAME1" SRC="default.gif">
!!This page is intended for people with Internet Explorer 4.0, or Netcape 5.0 (I guess).
</IFRAME><BR><BR>
<A HREF="n1.gif" TARGET="IFRAME1">Number 1</A><BR>
<A HREF="n2.gif" TARGET="IFRAME1">Number 2</A><BR>
<A HREF="default.gif" TARGET="IFRAME1">Default</A><BR>
</CENTER>

This displays an image, default.gif, in what looks like a normal image box. However, when the user clicks on one of the links, the new image loads in that image box. This is basically what an inline frame is.

IFRAME tags are cool enough just like this, but they can do more than view images. They can also view HTML files. So, you can have a table with an Inline Frame on one side, and links to short files on another. Here's an example of this:

Example 1
Example 2
Example 3


Now, you know how inline frames work. That was the point of this tutorial. One more cool thing about inline frames: They let you put one of those 'this site requires internet explorer 4.0 to work' GIFs on your page. (Though not very inclusive, it is, ahem, tres chic.)

Back to the main HTML page