HTML frameset: Main Tips
- The HTML
<frameset>
contained multiple frames, each of which had their own content. HTML5 no longer supports this element. - Instead of
<frameset>
HTML, you should use <iframe> element.
Use and Purpose of frameset
The HTML <frameset>
tag defined a container for holding more than one frame. Modern websites no longer apply this element.
Example
<frameset>
<frame src="loading.html" name="load-frame">
<frame src="data-pattern.html" name="show-data">
</frameset>
Note: values for this element were given either in percentage or pixels.
cols
It defined values for frames placed horizontally, in pixels or percentage. Not supported in HTML5.
Example
<frameset cols="50%, 25%, *">
<frame src="mega.html">
<frame src="small.html">
<frame src="small_compressed.html">
</frameset>
rows
It specified values for frames placed vertically, in pixels or percentage. Not supported in HTML5.
Example
<frameset rows="25%,25%,25%,*">
<frame src="load.html">
<frame src="demo.html">
<frame src="main.html">
<frame src="working.html">
</frameset>
Browser support
Chrome
All
Edge
All
Firefox
All
IE
All
Opera
All
Safari
All
Mobile browser support
Chrome
All
Firefox
All
Opera
All
Safari
All