4.1. Frame Document Template

In a normal HTML document, the BODY section immediately follows the HEAD and contains the body of the Web page that the user sees. In a frame document, the BODY is omitted or relegated to a NOFRAMES section only seen by browsers that do not support frames. In lieu of BODY, a FRAMESET elements defines the basic row and column structure of the document. Listing 4.1 gives a basic template illustrating this structure. A FRAMESET can contain nested FRAMESETs that further subdivide the window, or it can contain FRAME elements that reference the URLs of the actual documents that will be displayed in the frame cells. A frame document should include the Frameset DOCTYPE,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset ...

Get Core Web Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.