Frameset

Support Key: [2|3|3.2|4] [X1|X1.1] [IE3A1| M3B2*|N2|O2.1]
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson =
Main Index | Element Tree | Element Index | HTML Support History



   Quick Statistics   
End Tag:
   Required
Standards Details:
Transitional/Frameset HTML 4.x/XHTML 1.0 DTDs only. Dropped in XHTML 1.1
XHTML Modules:
Frames
CSS 'display' Type:
"block" (according to CSS2, but that doesn't make complete sense)
CSS Mapping:
NA
Default Rendering:
Divides viewport into regions specified in ROWS and COLS attributes
Official Docs:
HTML 4.x, XHTML 1.0
What is it?
This element represents the meta structure of a document using frames. By replacing the BODY element in the document structure, the FRAMESET element defines the document layout in terms of areas of the screen containing sub-document URLs (the frame content.)

Each FRAMESET element can consist of a ROWS attribute, a COLS attribute, or both. The ROWS attribute indicates that the sub-area is to be divided in to horizontal document "stripes", while the COLS attribute defines vertical display areas. Using both attributes in a single FRAMESET creates a grid of sub document areas.

If no ROWS or COLS attributes are present in a FRAMESET element, it is interpreted as a single row arbitrarily sized to fit the current window. If BOTH ROWS and COLS have been specified, sub-document definitions are distributed left-to-right, top-to-bottom of the frame layout. Nested FRAMESET structures occur in place of where a corresponding FRAME definition statement would appear.

Note: The * character used below in the ROWS and COLS attributes deserves some explanation, as its use in this situation is unique in HTML. By itself, the * character specifies that any remaining frame width be devoted to the current frame. If there are multiple frames in the ROWS/COLS specification that have the * character, remaining space will be divided evenly between them. If the * character is preceded by an integer (N), that frame will receive N times as much of the remaining relative sized space as it would without the N prefix.

Common Attributes
%Core%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6B1|O5]
%Accessibility%
[2|3|3.2|4] [X1|X1.1] [ IE4 | M | N6 | O
%Events%
[2|3|3.2|4] [X1|X1.1] [IE3|M|N2|O3]
%Language%
[2|3|3.2|4] [X1|X1.1] [IE4|M|N|O]
%Editing%
[2|3|3.2|4] [X1|X1.1] [IE5.5|M|N|O]

Specific Attributes
Border
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N3B5|O2.1]
Standards Details: NA
Description:
This attribute is used in the outermost FRAMESET tag to globally set the border thickness for all frames within the FRAMESET.
Values: Positive integers representing the pixel space between frames. If BORDER=0 is used, it implicitly sets FRAMEBORDER to No.
BorderColor
[2|3|3.2|4] [X1|X1.1] [IE4B2|M|N3B5|O]
Standards Details: NA
Required? No
Description:
When this attribute is used in the FRAMESET tag, it attempts to set the colors of all borders for all frames in the frameset. This can be overridden on a frame-by-frame basis in the FRAME tag.
Values: The standard HTML color specification methods apply.
Cols
[2|3|3.2|4] [X1|X1.1] [IE3A1|M3B2|N2|O2.1]
Standards Details: In Transitional and Frameset HTML 4.x/XHTML 1.0 DTDs only. Dropped in XHTML 1.1.
Required? No
Description:
This attribute specifies that the current window will be sub-divided into columns (vertical bands of framed content.) Values to this attribute are separated by commas, and represent the horizontal widths of the resultant separate child frames in the current parent frameset. In theory, all values listed should account for, or sum up to, the full parent frame size. It is possible to abuse this, because the three types of values can be freely intermixed.
Values: CDATA. [Specified in pixels, a percentage of parent frame width (%) or in a dynamic relative sizing attribute specified by the use of the * character.]
FrameBorder
[2|3|3.2|4] [X1|X1.1] [IE3A1|M|N3B5|O7]
Standards Details: NA
Required? No
Description:
This attribute gives the author the option of whether or not to have borders around all the frames in the FRAMESET. This value can be overridden locally at the FRAME level.
Values:
    Internet Explorer lists values of 1 [DEFAULT] and 0 [display no border.]
    Netscape lists values for this attribute as Yes [DEFAULT] and No, but also understands "1"/"0".
FrameSpacing
[2|3|3.2|4] [X1|X1.1] [IE3A1|M|N|O]
Standards Details: NA
Required? No
Description:
This attribute specifies the size of the gap (in pixels) between individual frames in a frameset.
Values: Positive integers representing the pixel space between frames.
Name
[2|3|3.2|4] [X1|X1.1] [IE4|M|N|O]
Standards Details: NA
Required? No
Description:
This attribute specifies the name of the link so that scripting languages may access it.
Values: An alphanumeric string. Must begin with an alphabetic character.
Rows
[2|3|3.2|4] [X1|X1.1] [IE3A1|M3B2|N2|O2.1]
Standards Details: In Transitional and Frameset HTML 4.x/XHTML 1.0 DTDs only. Dropped in XHTML 1.1.
Required? No
Description:
This attribute specifies that the current window will be sub-divided into rows (horizontal bands of framed content.) Values to this attribute are separated by commas, and represent the vertical height of the resultant separate child frames in the current parent frameset. In theory, all values listed should account for, or sum up to, the full parent frame size. It is possible to abuse this, because the three types of values can be freely intermixed.
Values: CDATA. [Specified in pixels, a percentage of parent frame height (%) or in a dynamic relative sizing attribute specified by the use of the * character.]
Example
<html>
<head>
    <title>Frames Example</title>
</head>
<frameset rows="20,25%,*">
    <frame src="frame1.html" name="frame1" />
    <frame src="frame2.html" name="frame2" />
    <frameset cols="30%,*">
         <frame src="frame3.html" name="frame3" />
         <frame src="frame4.html" name="frame4" />
    </frameset>
<noframes>
    <body>
        This text will appear only if the browser does not support frames.
    </body>
</noframes>
</frameset>
</html>
Parent Model
<frameset> | <html>
Content Model
<frame> | <frameset> | <noframes>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...