Q. Show the Noframes Tag?
<NOFRAMES> tag can be used for those browsers which aren't able to interpret <FRAME> tags. Even though most, if not all, of your visitors would be able to see frames, there is still a small number of such browsers and there still are a number of users around who don't have latest in equipment. To address as wide an audience as possible, you can write a no-frames version of your page.
<HTML>
<HEAD>
<TITLE>My Frame Page- The Master Page</TITLE>
</HEAD>
<FRAMESET COLS="50,*, 2*">
<FRAMESET ROWS="50,*,*">
<FRAME SRC="One.htm">
<FRAME SRC="Five.htm">
<FRAME SRC="Six.htm">
</FRAMESET>
<FRAME SRC="Two.htm">
<FRAMESET ROWS="50%, 50 %">
<FRAME SRC="Three.htm">
<FRAME SRC="Four.htm">
</FRAMESET>
</FRAMESET>
<BODY><NOFRAMES> your browser does not handle frames! </NOFRAMES>
</BODY>
</HTML>
Figure: Putting in a NOFRAMES Version
Put your non-frames page down between <NOFRAMES> tags. If someone is using an old browser, it would skip everything above and come straight down here. Frames-capable browsers will ignore what is between <NOFRAMES> tags. We can also put images in frames. Let's see how to put in "world.gif"as an example.
<FRAME SRC="world.gif" WIDTH=146 HEIGHT=162 SCROLLING=NO> FRAME SRC="world.gif" WIDTH=146 HEIGHT=162>
Scrollbars that you see can be specified as YES, NO or AUTO. YES means window gets scrollbars - whether they are needed or not. NO means there would be no scrollbars. AUTO is the default. If scrollbars are required, they appear while if they aren't needed they stay conveniently out of the way. So let's see how to get rid of our scrollbars.
<FRAME SRC="world.gif" WIDTH=146 HEIGHT=162 SCROLLING=NO>
You would notice a problem with this code. The image isn't in the right frame. The subsequent two attributes deal with margins. Browser automatically gives each frame some empty space around its contents. This is normally useful for aesthetic purposes. You can control the size of these margins by using MARGINWIDTH and MARGINHEIGHT. They control the left and right and top and bottom margins respectively. We will set them both to 1. (1 is the minimum).
<HTML>
<HEAD>
<TITLE>My Frame Page- The Master Page</TITLE>
</HEAD>
<FRAMESET COLS="146,*">
<FRAMESET ROWS="162,*">
<FRAME SRC="world.gif" WIDTH=146 HEIGHT=162 SCROLLING=NO
MARGINWIDTH=1 MARGINHEIGHT=1>
<FRAME SRC="One.htm">
</FRAMESET>
<FRAME SRC="Two.htm">
</FRAMESET>