<frameset> Tag in HTML

The <frameset> tag was used in HTML 4 to divide a browser window into multiple sections, where each section could load a separate HTML document. This was often used to create navigation menus and content areas within the same page.

Key Points on <frameset> Tag:

Syntax of <frameset> Tag:

Syntax Example

<frameset rows="50%,50%">
            <frame src="page1.html">
            <frame src="page2.html">
        </frameset>

Example of <frameset> Tag in HTML:

This example creates a frameset with two rows, each displaying a different HTML page.

Code Example


        <!DOCTYPE html>
        <html>
            <head>
                <title>Frameset Example</title>
            </head>
            <frameset rows="50%,50%">
                <frame src="html1.1.html">
                <frame src="html1.1.html">
            </frameset>
        </html>
                

Output

This would split the window into two frames. The content of html1.1.html would be displayed in both the top and bottom frames. Note: <frameset> is deprecated in HTML5 and has been replaced by CSS and <iframe> tags for similar functionality.

While the <frameset> tag was useful for creating multi-pane layouts in early web designs, it is no longer supported in HTML5. It is recommended to use CSS for layout and <iframe> for embedding external content in modern web development.