HTML and CSS Reference
In-Depth Information
Working with Frames
Typically,asaWebsitegrowsinsizeandcomplexity,eachpageisdedicatedtoapartic-
ulartopicorgroupoftopics:onepagemightcontainalistoflinks,anotherpagemight
displaycontactinformationforthecompanyororganization,andanotherpagemight
describethebusinessphilosophy.Asmorepagesareaddedtothesite,thedesigner
mightwantawaytodisplayinformationfromseveralpagesatthesametime.
OnesolutionistoduplicatethatinformationacrosstheWebsite,butthisstrategy
presentsproblems.Itrequiresagreatdealoftimeandefforttorepeat(orcopyand
paste)thesameinformationoverandoveragain.Also,eachtimeachangeisrequired,
youneedtorepeatyoureditforeachpageinthesite—aprocessthatcouldeasilyresult
inerrors.
Suchconsiderationscontributedtothedevelopmentofframes.A
frame
isasectionof
thebrowserwindowcapableofdisplayingthecontentofanentireWebpage.FigureE-1
showsanexampleofabrowserwindowcontainingthreeframes.Theframeontheleft
displaysthecontentofaWebpagecontainingalistoflinks;theframeontherightdisplays
asecondWebpageshowingthesite'shomepage;thetopframedisplaysthesite'slogo.
Figure e-1
Frame example
links.html
home.html
head.html
first f
r
ame
third
f
rame
second frame
frame border