The HTML Elements reference.

"iframe" - html element

  • This element defines an inline frame for the inclusion of other HTML documents.
  • Starttag <iframe> is Required and endtag </iframe> is Required
  • The SRC attribute provides the location of the frame content.
  • Browsers that support the iframe - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "iframe" example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <title>A simple iframe example</title>
 </head>
 <body>
  Visit <a href="http://www.yahoo.com"
           target="myiframe" >www.yahoo.com</a>
   or  visit <a href="http://www.bing.com"
           target="myiframe" >www.bing.com</a>
   or  visit <a href="http://w3processing.com"
           target="myiframe" >w3processing.com</a>
  <br/>  <br/>
  <iframe name="myiframe" width="800px" height="600px"
           src="http://www.yahoo.com" frameborder="0" >
   <p>This browser does not support iframes.</p>
  </iframe>
 </body>
</html>


Attributes:
align (deprecated), class , frameborder , height (deprecated), id , longdesc , marginheight , marginwidth , name , scrolling (Initial: auto), src , style , title , width (deprecated)

Attribute "align" value(s): depend on which element bottom, middle, top, left or right
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
  • You should use styles (CSS) instead.
Possible attribute, align, values for this element:
Attribute value description
bottom Means that the bottom of the image should be vertically aligned with the current baseline. This is the default value.
middle Means that the center of the image should be vertically aligned with the current baseline.
top Means that the top of the image should be vertically aligned with the top of the current text line.
left Cause the image to float to the current left margin.
right Cause the image to float to the current right margin.



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.