Using the <NOFRAMES> Tag

In most cases you do not need to include the <BODY> tags for pages containing frames. However, if you want your page to be viewed by browsers that do not support frames, as well as by those that do, you need to use the <BODY> tags. The difference is that the <BODY> tags must be placed within a pair of <NOFRAMES> tags. The <NOFRAMES> tag identifies a section of you HTML file that contains code to be read by frame-blind browsers. The general syntax for the <NOFRAMES> tag is:

<HTML>

<HEAD>

<TITLE>Page Title</TITLE>

</HEAD>

<FRAMESET>

</FRAMESET>

<NOFRAMES>

<BODY>

</BODY>

</NOFRAMES>

</HTML>

If a browser supports frames, it will ignore everything within the <NOFRAMES> tags and concentrate solely on the code within the <FRAMESET> tags. If a browser doesn't support frames receives this code, it doesn't recognize the <FRAMESET> and <NOFRAMES> tags, so it just ignores them. However it does know the <BODY> tags on the page and deals only with them. In this way, both types of browsers are supported within a singe HTML file.

In order to accomplish the <NOFRAMES> property, you must create a non framed version of the same page and place it between the body tags. For practical purposes, when creating frame Web pages you should create both. For this particular exercise, you will not need to create a non framed version. To learn more about tips for using frames, turn to page 5.30 in your textbook.

Haunted Hideaways