Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Frames in HTML are used to divide a webpage into multiple sections, with each section displaying a different HTML document.
Frames let you show multiple documents at once, keep navigation menus or headers fixed, and organize large websites into separate sections.
The two main tags are <frameset> and <frame>.
The <frameset> tag defines how the browser window is divided into rows or columns for displaying frames.
The <frame> tag specifies which HTML document appears in a particular section of the frameset.
When frames are used, <frameset> replaces the <body> tag in an HTML document.
<frameset cols="50%,50%">
<frame src="left.html">
<frame src="right.html">
</frameset>
The rows attribute divides the page into horizontal sections (rows).
Important attributes include cols, rows, border, bordercolor, and frameborder.
The src attribute specifies the HTML page or file to display inside the frame.
By using the noresize attribute in the <frame> tag.
It will divide the page into two horizontal sections: the top 30% and bottom 70%.
Using the scrolling attribute with values 'yes', 'no', or 'auto' in the <frame> tag.
By giving a frame a name (using the name attribute) and using the target attribute in the link to point to that frame.
<a href="about.html" target="rightFrame">About Us</a>
Nested framesets are framesets placed within other framesets to create more complex layouts with multiple rows and columns.
<frameset rows="20%,80%">
<frame src="header.html">
<frameset cols="30%,70%">
<frame src="menu.html">
<frame src="content.html">
</frameset>
</frameset>
No, both tags are deprecated in HTML5 because modern websites use CSS and <iframe> for layouts.
CSS layouts and the <iframe> tag are commonly used instead of framesets.
Advantage: Allows persistent menus or headers. Disadvantage: Frames are not supported in HTML5 and can make navigation and bookmarking harder.