Core Concept of HTML page layout using the frame tag
The main purpose of <frameset> is to divide the browser window into sub-parts as frames. So that each frame can load a different HTML file.
In this example, frame1.html represents the left side portion, frame2.html represents the right side, and frame.html represents the center part.
Why was it used?
This frameset was used in the 90s and at the beginning of the 2000s because, at that time, CSS layout tools like flexbox or grid did not exist, so to fix the website navigation menu, this frameset tag was used.
Where was it used?
- Admin Dashboard & Portals: In old time the banking software, college management systems, or control panels had a left menu and right-side main content.
- Documentation Sites: The chapter list on the left side and the details of the chapter on the right side.
Is this frameset still relevant?
No, this frameset tag is fully deprecated in HTML by the W3C (which sets all the HTML standards); also, the <frame> and <noframe> tags are deprecated.
So, modern websites don’t contain these tags. And today, the use of <frame>, <noframe>, and <frameset> is a bad practice.
Advantages of this Program
- To load complete navigation or separated content at one time, so the loading speed is fast, and the consumption of data is also less.
Limitations of this Program
- Poor for SEO (Search Engine Optimization): Any search engine couldn’t crawl the content inside the frameset tags correctly.
- Responsiveness Problem: This tag was not compatible with small screens or mobile devices.
- URL Sharing Problem: The page inside the frame or the HTML URL was not shareable.
Alternatives in Today’s World
CSS Flexbox, CSS Grid, and HTML <iframe> (inline frame) are alternative ways, and modern JavaScript frameworks like Angular and React are used, which are SEO friendly and responsive.
What is the meaning of deprecation?
Anything like a package, tag, a feature, or an app or software that is no longer used in the next version is known as deprecation or deprecated.
