Horizontal Frameset in HTML

The Frameset in HTML is mean for implementing multiple pages in a single window.

Horizontal Frameset in HTML

Horizontal Frameset in HTML

     

The Frameset in HTML is mean for implementing multiple pages in a single window. Each frame in a HTML page presents a separate web documents. The frameset decides the number of column and rows in the frameset. For the implementation of frameset, we need to use columns and rows attribute.

Understand with Example

In this Tutorial, the code illustrates a html page with horizontal frameset. For this we create a html page, The page name entitled New Document  with <body> tag NAME A is saved with .htm extension.

 

 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
NAME A
</BODY>
</HTML>

 

Now paste the path of html code in url of your browser. The output of code is displayed as


Again create the  HTML page with <body> tag  NAME B is saved with .htm extension.


Paste the path of html code in your url and the output on browser is displayed as


Horizontal Frame set is used to set the horizontal subspaces in a frameset.

<frameset rows> :The attribute <frameset> is used to set the number of horizontal subspaces in a web page.

<frame src> :The attribute specify the location of html page from which file is taken.

 

The html code is saved with .html extension.


<html>
<frameset rows="50%,50%">
<frame src="NAMEa.htm" />
<frame src="NAMEb.htm" />
</frameset>

</frameset>

</html>


Place the path of html code in a url of your browser. The output code on the browser is displayed as-


Download Source