Frameset in HTML

Frameset in HTML was used to divide a webpage into multiple sections, allowing multiple HTML documents to be displayed on the same page. However, it is now deprecated in HTML5 and replaced by modern layout techniques like CSS Grid, Flexbox, and <iframe>.

Basic Example

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

 Frameset with Rows and Columns

<frameset rows="30%, 70%">
    <frame src="header.html">
    <frameset cols="50%, 50%">
        <frame src="left.html">
        <frame src="right.html">
    </frameset>
</frameset>

Attributes of <frameset>

AttributeDescriptionExample
colsSplits screen into vertical sections<frameset cols="30%, 70%">
rowsSplits screen into horizontal sections<frameset rows="50%, 50%">
srcDefines the page to load in a frame<frame src="home.html">
nameAssigns a name to the frame<frame name="main">
scrollingEnables/disables scrolling (yes, no, auto)<frame scrolling="no">
noresizePrevents frame resizing<frame noresize>

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz