<frameset> ... </frameset>


attribute default description
id none specifies the unique ID
class none specifies the style sheet class
style none specifies the style sheet
rows none specifies the number of rows
cols none specifies the number of columns
frameborder none specifies whether or not to display border around the frame (IE)
framespacing none specifies the width between frames (IE)
border none specifies the thickness of the frame border (Netscape 4)
bordercolor none specifies the color of the frame border


HTML 4.01 [F], XHTML 1.0 [F]
Microsoft (MSDN)
[IE3 or later][Firefox 1 or later][Safari 1 or later][Opera 3 or later][Netscape 2 or later]


The frameset tag specifies how to separate the window into frames. Specifying frameset rows="20%,100", The top and bottom frame is created (top is 20% of the window size : bottom is 100 pixels high). Specifying framset cols="30%,100,*", the frame split into 3 columns is created (from the left, first is 30% of the window size : second is 100 pixels wide : third is the rest). Specifying frameset rows="100,2*,3*", the frame with 3 rows is created (from the top, first is 100 pixels high : the rest is split the available space into the proportion of 2 part to 3). Specifying frameset rows="100,*", two frames is created. But the bottom frame is 0 pixels and is unvisible.
As the <frameset> can be nested, you can create frames inside of frames.

Related Tags

frame, iframe, noframes

Sample Code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<frameset rows="20%,*">
<frame src="top.html">
<frame src="bottom.html">