Iframes
You can use iframe to fit a whole lot of content in one little
space. They are often used in text heavy areas like news feeds
and content areas of a site.
Have you ever wondered how to make inset frames (iframes) like
the news section on Spoono's main page? Well it's pretty simple.
All you have to do is know how to use the <iframe> tag.
Using iframes gives you all the benefits of frames and very few
of the downsides.
Here is the code to make the following iframe:
<iframe src="sample.html" name="myiframe" scrolling="auto" width="250"
height="200" frameborder="0">Type error
message for Netscape 4 and older browsers here.</iframe>
As you can see, the src attribute tells the iframe what web page
to display inside the iframe. The name attribute isn't always
necessary, but can be used if you have links outside the iframe
that make changes to the content inside the iframe. The auto
scrolling is always good to use. The height, width, and frameborder
are self-explanatory. Make sure you don't forget them. The
message that appears inside of the <iframe>
tag is only viewable to archaic browsers, such as Netscape 4
which do not support iframes.
There you go, have some fun with it.
|