O'Reilly logo

HTML & XHTML: The Definitive Guide, 5th Edition by Chuck Musciano, Bill Kennedy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The <noframes> Tag

A frame document has no <body>. It must not, since the browser ignores any frame tags if it finds any <body> content before it encounters the first <frameset> tag. A frame document, therefore, is all but invisible to any non-frames-capable browser. The <noframes> tag gives some relief to the frames-disabled.

You should use the <noframes> tag only within the outermost <frameset> tag of a frame document. Content between the <noframes> tag and its required end tag (</noframes>) is not displayed by any frames-capable browser but is displayed in lieu of other contents in the frame document by browsers that do not handle frames. The contents of the <noframes> tag can be any normal body content, including the <body> tag itself.

Although this tag is optional, experienced authors typically include the <noframes> tag in their frame documents with content that warns non-frames-capable browser users that they’re missing the show. And smart authors give those users a way out, if not direct access to the individual documents that make up the frame document contents.

Remember our first frame example in this chapter? Figure 11-5 shows what happens when that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required