Contact Our Development Team
Free Code Tutorials & Open Source Code
HTML Iframes
Tutorials > HTML > Iframes
Iframes - Inline Frames
Iframes are frames which are included inline in your document to included content from an external source. You probably won't use them a huge amount when you are beginning with HTML development, but after a while you may find some clever uses for them. Here's an example of an Iframe:
<iframe src="http://www.google.com" width="500" height="400" frameborder="1" scrolling="yes">Your browser does not support this Iframe</iframe>
The text between the <iframe> and </iframe tags is usually hidden, and will only be displayed if the page is viewed with a browser which does not support the Iframe element. The attributes you can use when describing Iframes are:
  • src="" - The source of the content to be displayed in the Iframe
  • width="" - Width of the Iframe in pixels
  • height="" - Height of the Iframe in pixels
  • frameborder="1|0" - Whether to show a border on the Iframe
  • marginheight="" - Height of the margin
  • marginwidth="" - Width of the margin
  • scrolling="yes|no|auto" - Whether to add scrollbars to the Iframe (default - auto)
Page Responses
Currently there have been no responses to this page...
If you have anything to contribute to this tutorial, found a bug, or know a better way of achieving the same goal, please leave your response below.
     
Copyright ©2009, Wired IDS Ltd. | Licensed under Creative Commons Attribution Share-Alike | Load time: 0.2962 seconds