frameset

FilterElements

<frameset> ... </frameset>

Not in HTML5. Defines a collection of frames or other framesets. The frameset element is used in place of the body element for framed documents, and the document’s DOCTYPE declaration should point to one of the Frameset DTDs as shown in the example below.

The frameset element may not contain any content but instead defines and names some number of frames (or other framesets) arranged in rows and/or columns. Each frame is indicated with a frame element within the frameset. A frameset document contains a regular header portion (as indicated with the head element).

Start/End Tags

Required/Required

Specifications

  • HTML 4.01

border=

Values: number
Nonstandard. Sets frame border thickness (in pixels) between all the frames in a frameset (when the frame border is turned on). Mozilla browsers do not support border.

bordercolor=

Values: #rrggbb or color name
Nonstandard. Sets a border color for all the borders in a frameset. Mozilla and Opera browsers do not support bordercolor.

cols=

Values: list of lengths (number, percentage, or *)
Establishes the number and sizes of columns (vertical frames) in a frameset. The number of columns is determined by the number of values in the list. Size specifications can be in absolute pixel values, percentage values, or relative values (*) based on available space.

frameborder=

Values: 1 | 0; (Netscape: yes | no)
Nonstandard. Determines whether 3D separators are drawn between frames in the frameset. A value of 1 (or yes ) turns the borders on; 0 (or no ) turns the borders off. Netscape also supports values of 1 and 0. The Frameset DTD does not include the frameborder attribute for the frameset element.

rows=

Values: list of lengths (number, percentage, or *)
Establishes the number and size of rows (horizontal frames) in the frameset. The number of rows is determined by the number of values in the list. Size specifications can be in absolute pixel values, percentage values, or relative values (*) based on available space.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/HTML4.01/frameset.dtd">

<html>
<head>
<title>Simple Framed Document</title>
</head>

<frameset cols="200,*">
  <frame src="left.html">
  <frame src="right.html">
</frameset>

<noframes>
<body>
<p>Your browser does not support frames.</p>
</body>
</noframes>

</html>

Rendered Example

This is an image of how the framed document may appear in a browser.