<FRAME>
This element defines a single frame in a frameset. It has 9 possible attributes: SRC, NAME, MARGINWIDTH, MARGINHEIGHT, SCROLLING, NORESIZE, FRAMEBORDER, FRAMESPACING and BORDERCOLOR. The FRAME element is not a container so it has no matching end element.

SRC="url"
This attribute is used to specify the HTML document that will be used as the display in the particular frame section of the frame set.

NAME="frame_name"
The NAME attribute is used to assign a name to a frame so it can be targeted by links in other documents, by using <A HREF="URL" TARGET="frame_name"> (These would usually be from other documents in the same frame set.) The NAME attribute is optional; by default all windows are unnamed.

Names must begin with an alphanumeric character. Several reserved names have been defined, which start with an underscore.
These are currently:

_blankAlways load this link into a new, unnamed window
_selfAlways load this link over the document that originated the link.
_parent  Always load this link over the parent frame. (becomes self if the frame has no parent, or is the parent frame).
_topAlways load this link at the top level. (becomes self if the frame is the top frame).

NOTE : Although these are reserved names for the NAME attribute of the <FRAME> element, they should only be referred to using an Anchor Target. That is, used to target specific windows, allowing smoother transition between framed documents and between framed and non-framed documents (for example when providing a link to documents on a foreign server that may not be framed documents).

MARGINWIDTH="value"
This accepts an absolute pixel value and forces indentation from the left and right hand side of the frame pane according to the number of pixels. It cannot be set to a value less than 1 as this would cause the contents of the frame to be displayed right up against the left hand margin. By default, the browser will choose its own MARGINWIDTH when trying to produce the best possible display.

MARGINHEIGHT="value"
This is analogous to the MARGINWIDTH attribute, but it controls the top and bottom margins.

SCROLLING="yes|no|auto"
This attribute can be used to control the appearance of any scroll bars that may appear as a result of the frame contents being too much to display in the set pane. Using "no" may be dangerous, because the HTML author cannot know the resolution/display window size of the client browser and so information may not be displayable.

NORESIZE
By default, all frames specified in a framed document can be resized by the client. Setting this flag (it requires no value) prevents the frame from being resized.

FRAMEBORDER="yes|no|0"
This attribute allows control of the frame border display. With this attribute set to "0" (Internet Explorer), the borders for the specific frame are not drawn. Netscape now also supports use of this attribute (using values of "yes|no") and also supports it in the <FRAMESET> element (see above) for globally setting the borders of a whole frame set. NOTE : In Netscape frames share borders and for the borders to not be drawn, all the frames sharing a common border must have their FRAMEBORDER attribute set to "no"

A note about borderless frames
Internet Explorer and Netscape have different methods for producing borderless frames. In Netscape specifying BORDER="0" in the first <FRAMESET> element is sufficient to remove all the borders from the frame set. Internet Explorer on the other hand, doesn't support this attribute and requires setting of the FRAMEBORDER and FRAMESPACING attributes (both to "0") in the first frame set to remove all the borders. For a browser independent (i.e. working in Netscape and Internet Explorer) borderless frame layout, use :

<HTML>
<HEAD>
<TITLE>Borderless Frames example</TITLE>
</HEAD>
<FRAMESET FRAMEBORDER="0" FRAMESPACING="0" BORDER="0" COLS="165,*" >
<FRAME SRC="contents.htm" NAME="contents">
... other <FRAME> elements (including other <FRAMESET> elements)
...

FRAMESPACING="value"
This attribute is also Internet Explorer specific and allows the setting of extra space around frames, to give the appearance of floating frames. The "value" should be the distance required around the frame in pixels.

<FRAME FRAMESPACING="40" ...>

would present the frame with an invisible "border" of 40 pixels.

BORDERCOLOR
This Netscape specific attribute sets the colours for the border of the specified frame. It can also be used in the <FRAMESET> element (see above) for globally setting the border colours of a whole frameset. It accepts any #rrggbb hex triplet as a value. Setting the BORDERCOLOR attribute in the <FRAME> element over-rides any setting given in the <FRAMESET> element, of which the <FRAME> is a part.


<FRAMESET> Frames Overview <NOFRAMES>