HTML Frameset FrameBorder Attribute

The frameborder attribute is used to ON and OFF the frame borders. The frameborder=”0”  turn off the frame borders ad frameborder=”1” turn on the same. All the major browsers can recognize the frameborder attribute.

HTML code to turn off the frame borders by setting the frameborder value to zero.

 

   1:  <html>
   2:  <head>
   3:  <title>
   4:  Nested Frameset
   5:  </title>
   6:  </head>
   7:  <FRAMESET cols="40%,*" frameborder="0">
   8:  <frameset rows="50%,50%">
   9:  <frame src="cellpadding.htm">
  10:  <frame src="caption.htm">
  11:  </frameset>
  12:  <frameset rows="50%,*">
  13:  <frame src="cellpadding.htm">
  14:  <frame src="caption.htm">
  15:  </frameset>
  16:   
  17:     <NOFRAMES>
  18:     <H1>Great Recipes</H1>
  19:     No frames? No Problem! Take a look at our 
  20:     <A HREF="recipes.html">no-frames</A> version.
  21:     </NOFRAMES>
  22:   
  23:  </frameset>
  24:  </html>
image 

HTML code to turn ON the frame borders by setting the frameborder value to one.

 
   1:  <html>
   2:  <head>
   3:  <title>
   4:  Nested Frameset
   5:  </title>
   6:  </head>
   7:  <FRAMESET cols="40%,*" frameborder="1">
   8:  <frameset rows="50%,50%">
   9:  <frame src="cellpadding.htm">
  10:  <frame src="caption.htm">
  11:  </frameset>
  12:  <frameset rows="50%,*">
  13:  <frame src="cellpadding.htm">
  14:  <frame src="caption.htm">
  15:  </frameset>
  16:   
  17:     <NOFRAMES>
  18:     <H1>Great Recipes</H1>
  19:     No frames? No Problem! Take a look at our 
  20:     <A HREF="recipes.html">no-frames</A> version.
  21:     </NOFRAMES>
  22:   
  23:  </frameset>
  24:  </html>
  25:   

image

Tags: , , , , ,

Author: Revo

Share This Post On

Submit a Comment

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

17 − 15 =

 

Pin It on Pinterest

Shares
Share This