Floating Frames, Inline Frames or I-Frames

Introduced by Internet Explorer 3.0, I-frames or floating frames have been adopted by HTML 4.0.
Using I-frames can be effective when used properly. Place the iframe within the table tags to properly place and control the floating frame.

I-frames are different than Framesets in that the iframe tags are placed in the xhtml document. The file or image is placed within the iframe tag.

The Tags

  1. Open the I-frame tag and specify source file scr="file.html".
  2. Indicate the frame attributes:
    • height
    • width
    • align
    • scrolling
    • vspace
    • hspace
    • frameborder
  3. Close the I-frame tag

<iframe src="museums.html" width="200" height="200" align="center" scrolling="yes">

</iframe>

Inline Frame PUN!!

The Red File  <a href="yellow.htm" target="right">Click Me</a>. Refresh the page. More in class.

Web Design with XHTML Part II
Doris Cuffey, Instructor