Operation Manual
183
USING DREAMWEAVER
Laying out pages with HTML
Last updated 3/28/2012
Note: A “page” refers either to a single HTML document or to the entire contents of a browser window at a given moment,
even if several HTML documents appear at once. The phrase “a page that uses frames,” for example, usually refers to a
set of frames and the documents that initially appear in those frames.
A site that appears in a browser as a single page comprising three frames actually consists of at least four HTML
documents: the frameset file, plus the three documents containing the content that initially appears in the frames.
When you design a page using framesets in Dreamweaver, you must save each of these four files in order for the page
to work properly in the browser.
For more comprehensive information about Frames, consult Thierry Koblentz’s website at
www.tjkdesign.com/articles/frames/.
Deciding whether to use frames
Adobe discourages the use of frames for web page layout. Some of the disadvantages of using frames include:
• Precise graphical alignment of elements in different frames can be difficult.
• Testing the navigation can be time-consuming.
• The URLs of the individual framed pages don’t appear in browsers, so it can be difficult for a visitor to bookmark
a specific page (unless you provide server code that enables them to load a framed version of a particular page).
For a full treatment of why you should not use frames, see Gary White’s explanation at
http://apptools.com/rants/framesevil.php.
The most common use of frames, if you do decide to use them, is for navigation. A set of frames often includes one
frame containing a navigation bar and another frame to display the main content pages. Using frames in this way has
a couple of advantages:
• A visitor’s browser doesn’t need to reload the navigation-related graphics for every page.
• Each frame has its own scroll bar (if the content is too large to fit in a window), so a visitor can scroll the frames
independently. For example, a visitor who scrolls to the bottom of a long page of content in a frame doesn’t need
to scroll back up to the top to use the navigation bar if the navigation bar is in a different frame.