<frameset>

The <frameset> tag is used to define a collection of frames within a web page, allowing multiple HTML documents to be displayed simultaneously.
This feature is deprecated and is no longer recommended for use. While some browsers may still support it, it has either been removed from web standards, is in the process of being phased out, or is only retained for compatibility reasons. It is advisable to avoid using it and to update existing code where possible. Check the compatibility table at the bottom of the page for guidance, as this feature may stop functioning at any time.

frameset Tag

The <frameset> element is used to contain <frame> elements.

Since the use of frames is now outdated and has been replaced by <iframe>, modern websites rarely utilize this element.

Syntax

index.html
<frameset cols="percentage,width" rows="percentage,height">
  <frame src="url" name="frame_name">
  <!-- More frame elements here -->
</frameset>

Attributes

This element supports global attributes.

  • cols: Defines the number and width of columns in the frameset.
  • rows: Defines the number and height of rows in the frameset.

Example

A frameset document uses a <frameset> element instead of a <body> element, with <frame> elements placed inside the <frameset>.

index.html
<frameset cols="50%, 50%">
  <frame
    src="https://institute.qarpeo.com/cs/html/elements/iframe"
  />
  <frame
    src="https://institute.qarpeo.com/cs/html/elements/frame"
  />
</frameset>
The <frameset> and <frame> tags are obsolete in modern web development. For layout, use CSS, and for embedding external content, use <iframe> to ensure better flexibility, accessibility, and compatibility.

Conclusion

The <frameset> element was used to divide a webpage into multiple sections, each displaying a different document with the help of <frame> elements. However, it is now considered obsolete in modern web development. The<iframe> tag is recommended for better flexibility and browser compatibility.