W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y

<FRAME>

Description

<Related pages>
* How do I load a page in another frame?
* Can I protect my pages from being framed by someone else?
* How can I maintain the layout of my frames?
* How can I change two or more pages when a link is clicked?
In a page with frames, this element defines how the a specific frame looks and what is initially shown inside the frame, when the framed page is loaded.

This element is only allowed inside a FRAMESET element.

DTD

<![ %HTML.Frameset; [
<!-- reserved frame names start with "_" otherwise starts with letter -->
<!ELEMENT FRAME - O EMPTY              -- subwindow -->
<!ATTLIST FRAME
  %coreattrs;                          -- id, class, style, title --
  longdesc    %URI;          #IMPLIED  -- link to long description
                                          (complements title) --
  name        CDATA          #IMPLIED  -- name of frame for targetting --
  src         %URI;          #IMPLIED  -- source of frame content --
  frameborder (1|0)          1         -- request frame borders? --
  marginwidth %Pixels;       #IMPLIED  -- margin widths in pixels --
  marginheight %Pixels;      #IMPLIED  -- margin height in pixels --
  noresize    (noresize)     #IMPLIED  -- allow users to resize frames? --
  scrolling   (yes|no|auto)  auto      -- scrollbar or none --
  >
]]>
from the HTML 4.0 DTD, "Copyright © W3C, (MIT, INRIA, Keio). All Rights Reserved."

Attributes

Core attributes: class id style title

W3 3.2n
4.0n
NS 3.0y
4.0y
IE 3.0n
4.0y
TV 1.2n
2.1n
BORDERCOLOR
Give the border of the frame a color. Because frame borders are shared, the browser must resolve any border color conflicts.
  1. Any attribute appearing in the outermost FRAMESET has the lowest priority.
  2. This attribute is overridden by any attribute used in a nested FRAMESET element.
  3. Finally, any BORDERCOLOR attribute in the current FRAME element overrides all previous FRAMESET element uses.
If there is a conflict for two colors of equal priority both set on the same edge, the behavior is undefined.
W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
FRAMEBORDER
A frameborder is a separator between this frame and other frames. Possible values are :

Value Description
1 There will borders between this frame and other frames. This is the default.
0 No borders will be drawn between this frame and other frames.


W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
LONGDESC
With this attribute you can supply the URI of a document that contains a long description of the frame. This attribute supplements the TITLE attribute, which holds the title of the frame.

This attribute can be useful for non-visual browsers.


W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
MARGINHEIGHT
This attribute is used to control the vertical margins for the frame. If specified, the value for MARGINHEIGHT is in pixels. Margins can not be less than one-so that frame objects will not touch frame edges-and can not be specified so that there is no space for the document contents. The MARGINHEIGHT attribute is optional; by default, all frames default to letting the browser decide on an appropriate margin width.
W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
MARGINWIDTH
This attribute is used to control the horizontal margins for the frame. If specified, the value for MARGINWIDTH is in pixels. Margins can not be less than one-so that frame objects will not touch frame edges-and can not be specified so that there is no space for the document contents. The MARGINWIDTH attribute is optional; by default, all frames default to letting the browser decide on an appropriate margin width.
W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
NAME
The NAME attribute is used to assign a name to a frame so it can be targeted by links in other documents (These are usually located in other frames in the same document). The NAME attribute is optional; by default all windows are unnamed. Names must begin with an alphanumeric character. All other window names will be ignored.

Named frames can have their window contents targeted with the TARGET attribute of the A element


W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2n
2.1n
NORESIZE
The NORESIZE attribute is a flag that indicates that the frame is not resizable by the user. Users typically resize frames by dragging a frame edge to a new position. Note that if any frame adjacent to an edge is not resizable, that entire edge will be restricted from moving. This will effect the resizability of other frames.The NORESIZE attribute is optional; by default all frames are resizable.
W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2n
2.1n
SCROLLING
The SCROLLING attribute is used to describe if the user is able to scroll the contents of a frame.

Value Description
YES The user can scroll inside the frame. The scrollbar is always visible, even when the contents of the frame fit inside the frame.
NO The user can't scroll the contents of the frame. No scrollbars are available, even when the contents doesn't fit completely in the frame.
AUTO When necessary, the user can scroll through the frame. Scrollbars are only available when they are needed.
The SCROLLING attribute is optional; the default value is AUTO.


W3 3.2n
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
SRC
The SRC attribute takes as its value the URL of the document to be displayed in this particular frame. FRAMEs without SRC attributes are displayed as a blank space the size the frame would have been.

Examples

Source
Go and visit another <A href="FRAME1.html">framed</A> document.
 
Result
Go and visit another framed document.
Statistics