Description

The <frameset> tag defines a collection of frames or other framesets.

The following table summarizes the usages context and the version history of this tag.

Placement:Block
Content:<frameset>, <frame>, <noframes>
Start/ End Tag:Start tag: required, End tag: required
Version:HTML 4 and 4.01 (framesetset)

Warning: Do not use this tag since it is a non-standard tag. This tag has been removed in HTML5 and shouldn't be used anymore. Use HTML <iframe>, instead.

Syntax

The basic syntax of the <frameset> tag is given with:

HTML/XHTML: <frameset cols="[ number | percentage | * ] ,..." rows="[ number | percentage | * ] ,..."> ... </frameset>

The example below shows the <frameset> tag in action.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
    <title>This is a frameset document.</title>
</head>
<frameset>
    <frame src="sample-a.html" name="frame-a">
    <frame src="sample-b.html" name="frame-b">
</frameset>
</html>

Tag-Specific Attributes

The following table shows the attributes that are specific to the <frameset> tag.

Global Attributes

Like all other HTML tags, the <frameset> tag supports the global attributes in HTML5.

Event Attributes

The <frameset> tag also supports the event attributes in HTML5.

Browser Compatibility

Element
<frameset>YesYesYesYesYes