HTML Frame
(If this article you will learn to design HTML Frame in your Webpage)
The HTML tags that divide a browser screen into two or more HTML recognizable unique regions is the <FRAMESET> </FRAMESET> tags.Each unique region is called a frame. Each frame can be loaded with a different document and hence allow multiple HTML documents to be seen concurrently.
The HTML frame is a powerful fearture that enables a web page to be broken into different unique sections that, although related,operate independently of each other.
The <FRAMESET> tag
The splitting of a browser screen into frames is accomplished with the <FRAMESET> and </FRAMESET> tags embedded into the HTML document. The <FRAMESET> </FRAMESET> tags requires one of the following two attributes depending on whether the screen has to be divided into rows or columns.
1. Rows : This attribute is used to divide the screen into multiple rows.
2. Cols : This attribute is used to divide the screen into multiple columns.
Example :-
<FRAMESET ROWS="33%,33%,33%"> </FRAMESET> - This divides the browser screen into 3 equal horizontal sections.
<FRAMESET COLS="33%,33%,33%"> </FRAMESET> - This divides the browser screen into 3 equal vertical sections.
<FRAMESET ROWS="50%,50%"> </FRAMESET> - This divides the browser screen into 2 equal horizontal sections.
The <FRAME> tag
Once the browser screen is divided into rows (Horizontal section) and Columns (Vertical Section), each unique section defined can be loaded with different HTML Documents. This is achieved by using the <FRAME> tag, which takes in the following attributes:
SRC="url" : This attribute is refer the url of the documents to be uploaded into the frame.
NAME="name" : This attribute gives the unique name to the frame.
Example :-
<FRAMESET ROWS="50%,50%">
<FRAME SRC="file1.html">
<FRAME SRC="file2.html">
</FRAMESET>