Creating a Frameset

First, I want you to focus on learning how to write frameset documents. They are definitely different from the HTML pages you've been exposed to in this book so far. For starters, they use a different DOCTYPE declaration (see Example 6-1). This is the first piece of unique markup for a frame-based page.

Example 6-1. The frameset DOCTYPE declaration for XHTML 1.0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Now things start to get really interesting! Instead of the conventional HTML structure you're by now familiar with, you won't be adding a head and a body; instead, you add a head and a frameset.

You'll be able to use the head portion the same ...

Get Spring Into HTML and CSS 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.