Skip to Content
HTML, XHTML, and CSS Bible, Fifth Edition
book

HTML, XHTML, and CSS Bible, Fifth Edition

by Steven M. Schafer
January 2010
Intermediate to advanced
791 pages
14h 17m
English
Wiley
Content preview from HTML, XHTML, and CSS Bible, Fifth Edition

Chapter 10. Frames

IN THIS CHAPTER

  • Frames Overview

  • Framesets and Frame Documents

  • Targeting Links to Frames

  • Nested Framesets

  • Inline Frames

Several years ago, almost every document on the Web contained frames. The frameset structure provided an easy way to create multiple, separate scrolling areas in a user agent window and a flexible mechanism to modify the content of frames.

However, frames have turned out to be more of a fad. You can have many of the benefits provided by using frames through the infinitely more flexible and powerful CSS formatting methods.

That said, frames still have their uses and have even spawned their own official Document Type Definitions (DTDs) to handle their special tags and needs. This chapter introduces the concept of frames and shows you how to add them to your documents.

Frames Overview

At their simplest level, frames provide multiple separately scrollable areas within one user window. Many non-Web applications use the technique of separate panes to provide organization and controls. For example, Figure 10.1 shows Windows Explorer using the left panes to display Favorite Links and Folders, and the right pane to display files within the selected folder.

As you have no doubt noticed, the different panes in applications such as Windows Explorer can be manipulated separately from other panes. The same is true for documents utilizing frames.

For example, Figures 10.2 and 10.3 show the same document but the window in Figure 10.3 has been scrolled to view the bottom ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

HTML, XHTML, and CSS Bible, Fourth Edition

HTML, XHTML, and CSS Bible, Fourth Edition

Steven M. Schafer

Publisher Resources

ISBN: 9780470523964Purchase book