
|
 |
 |

Each <FRAME> tag basically references the html document. You will place this tag inside the <FRAMESET> tag. The frames are always defined left-to-right for columns or from top-to-bottom for rows. The frame tag is also an empty tag, so therefore it does not have a closing tag.
SRC
The SRC attribute works like the SRC attribute inside the image tag, it references the location of the file, except it will reference an html document and not an image. It will place this document within the frame. This document will be the default when the page is first loaded.
<FRAME SRC="a.html">
NAME
The NAME attribute become very important when you are linking pages, allowing you to click on one frame and open the page on another frame or in the same frame. Basically it assigns a name to that particular frame. The actual examples of some linked pages inside frames are shown further in the next section.
<FRAME NAME="first" SRC="a.html">
NORESIZE
The NORESIZE attribute has no value. This is used when you do not want to allow the user to resize your frames. To resize the frame one must just grab the border of a frame and drag it across the page to where they desire.
<FRAME SRC="a.html" NORESIZE>
SCROLLING
The scrolling attribute allows you to not have or have a scroll bar along the side of the frame. The values are: yes, no, or auto. The "yes" will obviously place a scroll bar, and the "no" will prevent it from appearing. The "auto" value will have a scroll bar appear only when necessary, for example when there is a large amount of content that will not fit in the space provided within that frame. The default is "auto".
<FRAME SRC="a.html" SCROLLING="auto">
MARGINWIDTH, AND MARGINHEIGHT
The MARGINWIDTH, and MARGINHEIGHT attributes allow you to set the margins of your frame. They allow you to control the space between the borders of the frame and the content. The MARGINWIDTH controls the space on the left and right hand sides. The MARGINHEIGHT controls the space on the top and bottom. Both values should be a number in pixels.
<FRAME SRC="a.html" MARGINWIDTH="3" MARGINHEIGHT="6">
© Copyright 2000-2002 by Pepmint.com. All Rights Reserved |
 |
 |
|