What is HTML Frameset Tag? Syntax & Example

frameset tag in html with example

frameset tag in html with example


It is used to specify the amount of spacing between the frames in a Frameset

 This can take value  integer  as parameter  which basically denotes  the value in pix 

Syntax :

<frameset rows="50%,50%">

<frame src="top_1.html">

 <frame src="bottom_2.html">

 </frameset>

frameset tag in html with example

 Example 


<!Doctype html>
<html>

<frameset rows="1,2" cols="1,2">

<frame src="frame_1.html">

 <frame src="frame_2.html">

 <frame src="frame_3.html">

<frame src="frame_4.html">

 </frameset>
</html>


frameset tag in html with example

 Explain Program

Step 1 ]

<!Doctype html>

  • <!doctype html>  always be the first line of any HTML document.

Step 2 ]

   <html> and </html>

   html  is the root element.

Step 3 ]

<body> and </body>

body  is  main content area.

All visible content inside to  the <body> tag

Step 4]

<frameset rows="1,2" cols="1,2">


 frames layout 

row= 1,2  :- frame layout two horizontal row.

cols=1,2 :- layout two vertical columns.


Step 5]

<frame src="frame_1.html">


frame  grid 
frame_1.html loads into first frame
frame_2.html into second and so on.

Step 5]

</frameset>


Close the </frameset> & html document.


frameset tag in html with example

  Output 


how to  create html frameset Tag


Related Post :-

Html Radio Buttons Example
Html Ordered List
CSS Table Alignment


Comments

Popular posts from this blog

HTML Tag

HTML Input Type Submit Syntax and Example

CSS Text Color Explained with Syntax and HTML Examples