HTML Frameset Tag

Html frameset tag divide the webpage into multiple frames. The frameset tag has capability to divide the webpage in rows and columns which are the attributes of frameset tag. As discussed earlier, every attribute has some value in case of rows and columns attribute the value can be set in pixels and percentage which tell the browser how much portion is assigned to each frame in the frame set.

The frameset at minimum contain two frames and each frame show different webpage. it is important to note that may be future version of HTML will support frame or not because using frame in Web pages is not considered as a good practice.

HTML code example to divide the webpage into two columns and showing two different Web pages in frames.

   1:  <html>
   2:  <frameset cols="50%,50%">
   3:  <frame src="cellpadding.htm" >
   4:  <frame src="cellspacing.htm">
   5:  </frameset>
   6:  </html>

image

 

HTML code example to divide the webpage into two rows and showing two different Web pages in frames.

   1:  <html>
   2:  <frameset rows="50%,50%">
   3:  <frame src="cellpadding.htm" >
   4:  <frame src="cellspacing.htm">
   5:  </frameset>
   6:  </html>

image

 

HTML code example to divide the webpage into rows and columns and showing different Web pages in frames.

   1:  <html>
   2:  <frameset rows="50%,50%">
   3:  <frame src="cellpadding.htm" >
   4:  <frameset cols="50%,50%">
   5:  <frame src="cellspacing.htm">
   6:  <frame src="caption.htm">
   7:  </frameset>
   8:  </html>

image

Tags: , , , , , , , ,

Author: Revo

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *

8 + four =

 

Pin It on Pinterest

Shares
Share This