You should already have a knowledge of tables before starting this tutorial. The iframes I'm going to teach you, go inside a table cell. No slicing and dicing needed!

To Create An Iframe Inside A Table Cell

add the following code inside your table cell tag:

Code:
<iframe name="choose a name for your iframe"
src="file you want displayed 1st"
border="0"
height="same as table cell in pixels only, do NOT use % here"
width="same as table cell, can be a % but not recommended"
</iframe>


Example:

Code:

<iframe name="Mainframe" src="http://google.com" border="0" height="300" width="300">
</iframe>

What it will look like:

 

Target commands are very important when working with iframes. If you have a link inside your iframe that you want to open in a new window, you must add

Code:
target=blank

 

after your url. If you have a link outside of the iframe window, and you want it to open in the iframe window, you must type target=your iframe name. As in my example,

 

Code:
target=Mainframe

 

, because that's the name of my iframe. Do not use quotes with the target command and be sure to spell the file name exactly right, including capitalization.