<IFRAME ...>
| Usage Recommendation |
|---|
| Use it, but be particularly careful to include options for the many people whose browsers don't do inline frames. |
<IFRAME ...><IFRAME ...>
Unlike frames created using
<FRAMESET ...><FRAME ...><IFRAME ...><IFRAME ...><IMG ...>
For example, within the same directory as this page there is a file called "hello.html". This code puts hello.html into an inline frame:
<IFRAME SRC="hello.html" WIDTH=450 HEIGHT=100> If you can see this, your browser doesn't understand IFRAME. However, we'll still <A HREF="hello.html">link</A> you to the file. </IFRAME>
which gives us this inline frame:
Here's what the code means:
-
IFRAME - The name of the
tag<IFRAME ...> -
SRC="hello.html" - The URL of the document to show in the inline frame.
-
WIDTH=450 HEIGHT=100 - The dimensions of the inline frame.
-
If you can see this, your browser doesn't understand IFRAME. However, we'll still <A HREF="hello.html">link</A> you to the file. - Code between
and<IFRAME ...> is not displayed by browsers that understand</IFRAME> . Browsers that do not understand<IFRAME ...> will display this code (because they don't know to ignore it).<IFRAME ...>
You can do most of the things with <IFRAME ...>
You can also control a few settings similar to the
<IMG ...>ALIGNHSPACEVSPACE
