HTML <frameset> element is employed to enclose a collection of frames that can be managed and customized collectively. The <frameset> tag additionally defines the quantity of rows and columns within the frameset, along with the dimensions allocated to each frame.
Note: Do not use HTML <frameset> element as it is deprecated and not supported by HTML5, but you can use <iframe> tag instead.
Syntax
Example
<frameset cols=" ">............</frameset>
Following are some details regarding the HTML <frameset> element:
| Display | Block |
|---|---|
| Start tag/End tag | Both Start and End Tag |
| Usage | Frames |
Example 1
Example
<!DOCTYPE html>
<html>
<head>
<title>Frame tag</title>
</head>
<frameset cols="50%,50%">
<frame src="https://placehold.co/400x300/1abc9c/ffffff?text=Sample+Image">
<frame src="https://placehold.co/400x300/1abc9c/ffffff?text=Sample+Image">
</frameset>
</html>
Output:
Attribute
Tag-specific attribute
| Attribute | Value | Description |
|---|---|---|
cols |
Pixels%* | It specifies the number and size of column spaces in the frameset. (Not Supported in HTML5) |
rows |
Pixels%* | It specifies the number and size of the rows spaces in the frameset. (Not Supported in HTML5) |
Supporting Browsers
| Element | Chrome | IE | Firefox | Opera | Safari |
|---|---|---|---|---|---|
<frameset> |
Yes | Yes | Yes | Yes | Yes |