<frameset>
frameset Tag
The <frameset>
element is used to contain <frame>
elements.
<iframe>
, modern websites rarely utilize this element.Syntax
<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 andwidth
of columns in the frameset.rows
: Defines the number andheight
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>
.
<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>
<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.
<frame>
The <frame> tag is used to define individual frames within a <frameset>, displaying separate HTML documents within each frame.
<iframe>
The HTML <iframe> element allows embedding an external HTML document within the current page, facilitating the integration of content such as videos or interactive elements.