Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions Tools to help you create your site Free and shareware fonts to download Photographs to use in your projects Shop for your site needs Free Online classes REcommend this site to others Log in or edit your information when logged in Developingwebs Log Out Change My Account details and preferences
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

 

<IFRAME> ... </IFRAME> IFRAME

Description:

This is an Internet Explorer specific element that departs from the standard FRAME structure syntax. This IN-LINE framing method (also called "floating frames") is basically a method to embed other HTML documents within the framework of a regular HTML document structure with the level of placement control allowed by the IMG element. In implementation and display it is created and treated much like the OBJECT element is - backwards compatibility is achieved by having the contents of the element ignored by browsers that understand IFRAME.

Attributes:

align - This specifies the alignment of text following the FRAME reference relative to the FRAME on the screen. LEFT and RIGHT alignment specify floating horizontal alignment of the frame in the browser window, and subsequent text in the document will wrap around the frame. The other values specify vertical alignment of text relative to the frame on the same line.

frameborder - This attribute gives the author the option of whether or not to have a border around the frame.

height - This attribute explicitly specifies the height of the frame in pixels. It can be used to speed up display of the document being downloaded so it can pre-render the document without the frame while the frame downloads.

hspace - This attribute specifies the horizontal spacing around the frame in pixels (left and right padding.)

longdesc - This attribute specifies the URL of a longer description of the contents of the IFRAME specified in the SRC attribute. This would allow long passages of descriptive narrative with markup for the content of the IFRAME.

marginheight - This attribute specifies the horizontal spacing INSIDE the frame in pixels (left and right padding.)

marginwidth - This attribute specifies the vertical spacing INSIDE the frame in pixels (top and bottom padding.)

name - The optional Name attribute indicates the symbolic name assigned to the current frame for reference by the browser when other links target the frame as a destination. Default behavior for all FRAME documents is to be unnamed. Named frames can serve as a destination of links via the TARGET attribute within the A, AREA, BASE, and FORM tags.

scrolling - This attribute provides guidelines for displaying a scrollbar in the frame for the user.

src - This attribute represents the URL of the current frame document. An IFRAME tag with no SRC attribute will display a blank space where the iframe would be.

vspace - This attribute specifies the vertical spacing around the frame in pixels (top and bottom padding.)

width - This attribute explicitly specifies the width of the frame in pixels. It can be used to speed up display of the document being downloaded so it can pre-render the document without the frame while the frame downloads.

Example code:

<html>
<head>
<title>Floating frames example</title>
</head>
<body>
<h1>This is a floating frame example</h1>
<hr>
<iframe src="../images/http://www.foo.com/frame1.html" NAME="float1" 
WIDTH="100" HEIGHT="100" ALIGN="right" NORESIZE>
You will not see this text if your browser supports IFRAME. 
If you CAN see this, you are in a bad way.
</iframe>
<hr>
</body>
</html>

Result:




"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2010 All Rights Reserved
Privacy and Legal