HTML Reference ยท Obsolete Elements
The <frameset> element (obsolete)
The HTML <frameset> element split the browser window into frames. Learn why it is obsolete, how browsers handle it today, and the modern CSS replacement.
The <frameset> element replaced the <body> of a page and divided the window into rows or columns of <frame> panes. Its rows and cols attributes took lists of sizes, such as cols="25%,*", and framesets could be nested to build grids.
Why it's obsolete
A frameset page is really several documents glued together. That broke bookmarks and the back button, confused search engines and assistive technology, and could not adapt to small screens. CSS layout and server-side templating solved the same problem without these costs, so HTML5 made <frameset> obsolete.
Browsers still render framesets for compatibility, but only when the <frameset> takes the place of <body>. If the document already has body content, the frameset is ignored.
Modern replacement
Lay out the regions of one page with CSS grid. Use <iframe> only for genuinely separate documents.
<!-- Before: obsolete --> <!DOCTYPE html> <html> <frameset rows="80,*"> <frame src="banner.html"> <frame src="content.html"> </frameset> </html>
Technical summary
| Status | Obsolete (non-conforming) |
| Replacement | CSS grid or flexbox; <iframe> for embedded documents |
| Still rendered by browsers | Partly; only when it replaces <body> |
Related
<frame>โ a single pane of a frameset<noframes>โ the obsolete fallback for frames<body>โ the document body a frameset replaced- Lesson: Deprecated and Obsolete Features
- Lesson: Page Layout