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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access