HTML <frameset> Tag

The <frameset> tag defines the structure of a frame (zone in the browser window, where we can load another web page), number of columns and rows, and also how many percent/pixels it will occupy in a frame.


The tag content is written between the opening (<frameset>) and the closing (</frameset>) tags.

The <frameset> tag can contain one or several <frame> tagsā€¤ It is allowed to nest one <frameset> tag in another if it is necessary to divide the windows into smaller ones.

The frameset document uses the <frameset> element instead of the <body> element. The frameset element may not contain any content, but instead it defines and names some number of frames, arranged in rows and/or columns.


<!DOCTYPE html>
    <title>Title of the document</title>
  <frameset cols="50%,50%">
    <frame src="">
    <frame src="">



Attribute Value Description
cols pixels
Defines the number and the size of frame columns.
Not supported in HTML5.
rows pixels
Defines the number and the size of frame rows.
Not supported in HTML5.

The <frameset> element also supports the Global Attributes.

Browser support