Free Web tutorials covering HTML, CSS, JavaScript, and DHTML from beginner to advanced. Free downloads and developer resources. Personalized help via email, form, and chat.

free, web, tutorials, HTML, html, CSS, css, stylesheet, cascading stylesheet, Javascript, javascript, JavaScript, DHTML, dhtml, beginner, advanced, web development, web page, web site, free web tutorial, free HTML tutorial, free CSS tutorial, free css tutorial, free cascading stylesheet tutorial, free stylesheet tutorial, free javascript tutorial, free DHTML tutorial, free HTML class, free CSS class, free stylesheet class, free cascading stylesheet class, free javascript class, free DHTML class">

Free Web tutorials covering HTML, CSS, JavaScript, and DHTML from beginner to advanced. Free downloads and developer resources. Personalized help via email, form, and chat. free, web, tutorials, HTML, html, CSS, css, stylesheet, cascading stylesheet, Javascript, javascript, JavaScript, DHTML, dhtml, beginner, advanced, web development, web page, web site, free web tutorial, free HTML tutorial, free CSS tutorial, free css tutorial, free cascading stylesheet tutorial, free stylesheet tutorial, free javascript tutorial, free DHTML tutorial, free HTML class, free CSS class, free stylesheet class, free cascading stylesheet class, free javascript class, free DHTML class

<Code_Punk>'s

Advanced HTML Lesson 17:
The <noframe> Tag

Code Tutorials



Site Development



Downloads



Help!!



Home

Frame Support

All modern browsers support the use of frames and have had for the past several years. There are, however, a few people that don't have modern browsers or just don't like frames and have disabled frame support in their browser.

For these rare cases, there is a <noframes> tag. This tag is coded after the frameset and can present regular text and HTML for people not using frames to see. This is often either a message to turn on their frames support or a link to a non-framed version of the page.

Here's a <noframes> tagset in action:

<html>

<head>
<title>My First Frames</title>

<frameset cols="200,*">

<frame src="test1.htm">
<frame src="test2.htm">

</frameset>

<noframes>
You need frame support to view this page.
</noframes>


</head>
</html>

The above code would present its message if the browser did not support frames. Otherwise, the message is invisible.

Making A <body>

There are some enhancements you can make to the <noframes> tag. One is adding a <body> to the section. This is the only case where you'd have a <body> inside the <head> of a page.

<html>

<head>
<title>My First Frames</title>

<frameset cols="200,*">

<frame src="test1.htm">
<frame src="test2.htm">

</frameset>

<noframes>
<body bgcolor="#ffffff" text="#000000">
You need frame support to view this page.
</body>
</noframes>

</head>
</html>

Using the <body> tag above, I'm able to insure a white background and black text. Don't get carried away with content inside the <noframes> tags. Make it a simple warning or a link to a non-frames page.

Summary

You should include a <noframes> section with your <frameset> pages for people whose browsers don't support frames. The content of the <noframes> section should be a simple link or warning.



To Next Advanced HTML Lesson

Back To Advanced HTML Index