Adobe 000_UsingDreamweaver Dreamweaver Instruction Manual En

User Manual: adobe Dreamweaver - Instruction Manual Free User Guide for Adobe Dreamweaver Software, Manual

Open the PDF directly: View PDF PDF.
Page Count: 582

DownloadAdobe 000_UsingDreamweaver Dreamweaver - Instruction Manual En
Open PDF In BrowserView PDF
Using Dreamweaver

™

macromedia

®

Trademarks
Afterburner, AppletAce, Attain, Attain Enterprise Learning System, Attain Essentials, Attain Objects for Dreamweaver, Authorware,
Authorware Attain, Authorware Interactive Studio, Authorware Star, Authorware Synergy, Backstage, Backstage Designer, Backstage
Desktop Studio, Backstage Enterprise Studio, Backstage Internet Studio, Design in Motion, Director, Director Multimedia Studio,
Doc Around the Clock, Dreamweaver, Dreamweaver Attain, Drumbeat, Drumbeat 2000, Extreme 3D, Fireworks, Flash, Fontographer,
FreeHand, FreeHand Graphics Studio, Generator, Generator Developer's Studio, Generator Dynamic Graphics Server, Knowledge
Objects, Knowledge Stream, Knowledge Track, Lingo, Live Effects, Macromedia, Macromedia M Logo & Design, Macromedia Flash,
Macromedia Xres, Macromind, Macromind Action, MAGIC, Mediamaker, Object Authoring, Power Applets, Priority Access, Roundtrip
HTML, Scriptlets, SoundEdit, ShockRave, Shockmachine, Shockwave, Shockwave Remote, Shockwave Internet Studio, Showcase, Tools
to Power Your Ideas, Universal Media, Virtuoso, Web Design 101, Whirlwind and Xtra are trademarks of Macromedia, Inc. and may be
registered in the United States or in other jurisdictions including internationally. Other product names, logos, designs, titles, words or
phrases mentioned within this publication may be trademarks, servicemarks, or tradenames of Macromedia, Inc. or other entities and
may be registered in certain jurisdictions including internationally.
This guide contains links to third-party Web sites that are not under the control of Macromedia, and Macromedia is not responsible for
the content on any linked site. If you access a third-party Web site mentioned in this guide, then you do so at your own risk. Macromedia
provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia endorses or accepts any
responsibility for the content on those third-party sites.
Apple Disclaimer
APPLE COMPUTER, INC. MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, REGARDING THE ENCLOSED
COMPUTER SOFTWARE PACKAGE, ITS MERCHANTABILITY OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
THE EXCLUSION OF IMPLIED WARRANTIES IS NOT PERMITTED BY SOME STATES. THE ABOVE EXCLUSION MAY
NOT APPLY TO YOU. THIS WARRANTY PROVIDES YOU WITH SPECIFIC LEGAL RIGHTS. THERE MAY BE OTHER
RIGHTS THAT YOU MAY HAVE WHICH VARY FROM STATE TO STATE.
Copyright © 2000 Macromedia, Inc. All rights reserved. This manual may not be copied, photocopied, reproduced, translated, or
converted to any electronic or machine-readable form in whole or in part without prior written approval of Macromedia, Inc.
Part Number ZDW40M100
Acknowledgments
Project Management: Sheila McGinn
Writing: Kim Diezel, Valerie Hanscom, Jed Hartman, Emily Ricketts
Editing: Anne Szabla and Lisa Stanziano
Production Management: John “Zippy” Lehnus
Multimedia Design and Production: Aaron Begley and Noah Zilberberg
Print Production: Chris Basmajian, Paul Benkman, Caroline Branch, and Rebecca Godbois
Web Editing and Production: Jane Flint DeKoven and Jeff Harmon
Special thanks to Jaime Austin, Chris Bank, Saam Barrager, Heidi Bauer, Jennifer Chapman, Winsha Chen, Kristin Conradi,
Margaret Dumas, Peter Fenczik, Jean Fitzgerald, S Fred Golden, Stephanie Goss, Victor Grigorieff, Narciso (nj) Jaramillo, John Koch,
David Lenoe, Eric Lerner, Charles Nadeau, Eric Ott, Jeff Schang, Mike Sundermeyer, and the Dreamweaver engineering and QA teams.

First Edition: November 2000
Macromedia, Inc.
600 Townsend St.
San Francisco, CA 94103

2

CONTENTS

INTRODUCTION
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installing Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Learning Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Web development workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Where to start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Typographical conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
What’s new in Dreamweaver 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
HTML and Web technologies resources . . . . . . . . . . . . . . . . . . . . . . .
Accessibility and Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12
12
13
17
20
22
22
25
26

CHAPTER 1
Dreamweaver Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Take a guided tour of Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . .
The Dreamweaver work area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Set up the site structure for the tutorial . . . . . . . . . . . . . . . . . . . . . . . .
Define a local site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create the site home page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Design a page in Layout view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Add content to the page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Work in Standard view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Use the Assets panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Insert Flash objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create a template. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Check your site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The next steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

28
28
31
31
34
35
44
50
56
60
63
68
70

3

CHAPTER 2
Dreamweaver Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . .71
About the Dreamweaver work area . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
About the different views in Dreamweaver . . . . . . . . . . . . . . . . . . . . . .73
Working with colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
About Web-safe colors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
Setting preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
Using Dreamweaver with other applications . . . . . . . . . . . . . . . . . . . . .89
Basic Customizing in Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . .90
CHAPTER 3
Planning and Setting Up Your Site . . . . . . . . . . . . . .95
About site planning and design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
Using Dreamweaver to set up a new site . . . . . . . . . . . . . . . . . . . . . . .102
Editing an existing Web site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
Editing a remote site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105
Removing a site from your list of sites . . . . . . . . . . . . . . . . . . . . . . . . .106
CHAPTER 4
Site Management and Collaboration . . . . . . . . . . . 107
About the Site window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
Viewing and opening files in the Site window . . . . . . . . . . . . . . . . . . .112
About the site map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
Using the site map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
Setting up a remote site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
About WebDAV and SourceSafe integration . . . . . . . . . . . . . . . . . . . .127
Troubleshooting remote site setup . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
Using Check In/Check Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131
About Design Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134
Using reports to improve workflow . . . . . . . . . . . . . . . . . . . . . . . . . . .141
Getting and putting files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143
Synchronizing the files on your local and remote sites . . . . . . . . . . . . .146

4

Contents

CHAPTER 5
Setting Up a Document . . . . . . . . . . . . . . . . . . . . . . . 149
Creating, opening, and saving HTML documents . . . . . . . . . . . . . . .150
Setting document properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152
Selecting elements in the Document window . . . . . . . . . . . . . . . . . . .154
Using visual guides in the design process . . . . . . . . . . . . . . . . . . . . . . .157
Viewing and editing head content . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
About automating tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160
CHAPTER 6
Designing Page Layout. . . . . . . . . . . . . . . . . . . . . . . . 167
About layout cells and tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .169
Drawing layout cells and tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .170
Moving and resizing layout cells and tables . . . . . . . . . . . . . . . . . . . . .176
Formatting layout cells and tables . . . . . . . . . . . . . . . . . . . . . . . . . . . .177
Setting layout width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .179
Setting Layout View preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182
CHAPTER 7
Using Tables to Present Content . . . . . . . . . . . . . . . 183
Inserting a table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184
Selecting table elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .187
Formatting tables and cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189
Resizing tables and cells. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
Adding and removing rows and columns. . . . . . . . . . . . . . . . . . . . . . .196
Copying and pasting cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199
Sorting tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201
Exporting table data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202
CHAPTER 8
Using Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Deciding whether to use frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . .204
About creating frame-based Web pages . . . . . . . . . . . . . . . . . . . . . . . .205
Creating frames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206
Selecting a frame or frameset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .208
Saving frame and frameset files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211
About frame and frameset properties. . . . . . . . . . . . . . . . . . . . . . . . . .212
Controlling frame content with links . . . . . . . . . . . . . . . . . . . . . . . . .218
Handling browsers that can’t display frames . . . . . . . . . . . . . . . . . . . .219
Using behaviors with frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .220

Contents

5

CHAPTER 9
Managing and Inserting Assets. . . . . . . . . . . . . . . . . 221
Using the Assets panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222
Using favorite assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .229
CHAPTER 10
Inserting and Formatting Text . . . . . . . . . . . . . . . . . 233
Inserting text and objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234
Creating lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
Setting fonts, styles, color, and alignment . . . . . . . . . . . . . . . . . . . . . .238
Using HTML styles to format text . . . . . . . . . . . . . . . . . . . . . . . . . . .244
Using CSS style sheets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
Converting CSS styles to HTML tags . . . . . . . . . . . . . . . . . . . . . . . . .256
Checking spelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258
Searching and replacing text, tags, and attributes. . . . . . . . . . . . . . . . .258
CHAPTER 11
Inserting Images. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .267
Inserting an image. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268
Setting image properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269
Creating image maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
Using an external image editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .277
Applying behaviors to images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280
CHAPTER 12
Using Dreamweaver and Fireworks Together . . . 281
Getting Fireworks files into Dreamweaver . . . . . . . . . . . . . . . . . . . . . .282
Launching Fireworks from within Dreamweaver . . . . . . . . . . . . . . . . .285
Editing Fireworks files placed in Dreamweaver . . . . . . . . . . . . . . . . . .288
Optimizing Fireworks images and animations placed in Dreamweaver 290
Updating Fireworks HTML placed in Dreamweaver. . . . . . . . . . . . . .293
Creating Web photo albums . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .293

6

Contents

CHAPTER 13
Inserting Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Inserting media objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .297
Launching an external editor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .298
Using Design Notes with media objects . . . . . . . . . . . . . . . . . . . . . . .300
About Flash content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .300
Using Flash button objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301
Using Flash text objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .304
Setting Flash object properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .305
Inserting Flash movies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .307
Inserting Generator objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .309
About Shockwave movies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .310
Adding sound to a page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .311
Inserting Netscape Navigator plugin content. . . . . . . . . . . . . . . . . . . .313
Inserting an ActiveX control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .316
Inserting a Java applet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .318
Using parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .319
Using behaviors to control media . . . . . . . . . . . . . . . . . . . . . . . . . . . .320
CHAPTER 14
Editing HTML in Dreamweaver . . . . . . . . . . . . . . . . 321
Understanding basic HTML tags . . . . . . . . . . . . . . . . . . . . . . . . . . . .322
Inserting comments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .327
Using the Dreamweaver Reference panel . . . . . . . . . . . . . . . . . . . . . . .328
About Roundtrip HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .329
Using the Code view (or Code inspector) . . . . . . . . . . . . . . . . . . . . . .330
Inserting scripts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .335
Opening and editing non-HTML files in Dreamweaver . . . . . . . . . . .338
Editing an HTML tag in the Design view . . . . . . . . . . . . . . . . . . . . . .338
Setting code formatting preferences. . . . . . . . . . . . . . . . . . . . . . . . . . .343
Cleaning up HTML source code. . . . . . . . . . . . . . . . . . . . . . . . . . . . .347
Cleaning up Microsoft Word HTML . . . . . . . . . . . . . . . . . . . . . . . . .348
Using external HTML editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .350

Contents

7

CHAPTER 15
Linking and Navigation . . . . . . . . . . . . . . . . . . . . . . . 353
About document locations and paths . . . . . . . . . . . . . . . . . . . . . . . . .354
Creating links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .358
Managing links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .366
Creating jump menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .369
Creating navigation bars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .371
Attaching behaviors to links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .374
CHAPTER 16
Reusing Content with Templates
and Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
Creating templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .377
Defining a template’s editable regions . . . . . . . . . . . . . . . . . . . . . . . . .381
Creating documents based on templates . . . . . . . . . . . . . . . . . . . . . . .388
Updating pages based on a template . . . . . . . . . . . . . . . . . . . . . . . . . .391
Exporting and importing XML content . . . . . . . . . . . . . . . . . . . . . . .392
Creating, managing, and editing library items . . . . . . . . . . . . . . . . . . .396
Using server-side includes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .404
CHAPTER 17
Using Dynamic Layers . . . . . . . . . . . . . . . . . . . . . . . 407
About layers and HTML code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .408
Creating layers on your page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .409
Manipulating layers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .412
Setting layer properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .417
Changing the stacking order of layers . . . . . . . . . . . . . . . . . . . . . . . . .420
Changing layer visibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .420
Using tables and layers for layout . . . . . . . . . . . . . . . . . . . . . . . . . . . .421
Animating your layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .425
Behavior actions for controlling layers timelines . . . . . . . . . . . . . . . . .434

8

Contents

CHAPTER 18
Using Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
Using the Behaviors panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .436
About events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .436
Attaching a behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .439
About behaviors and text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .441
Attaching a behavior to a timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . .442
Changing a behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .442
Updating a behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .443
Creating new actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .443
Downloading and installing third-party behaviors. . . . . . . . . . . . . . . .443
Using the behavior actions that come with Dreamweaver . . . . . . . . . .444
CHAPTER 19
Debugging JavaScript Code . . . . . . . . . . . . . . . . . . 473
Running the debugger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .474
Finding and fixing logical errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . .476
CHAPTER 20
Creating Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481
About CGI scripts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .482
About form objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .482
Creating a form. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .483
About form fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .485
Inserting checkboxes and radio buttons. . . . . . . . . . . . . . . . . . . . . . . .491
About lists and menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .493
About form buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .496
About form design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .498
Processing forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .499
Using behaviors with forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .500
CHAPTER 21
Testing and Publishing a Site . . . . . . . . . . . . . . . . . . 501
Checking for browser compatibility . . . . . . . . . . . . . . . . . . . . . . . . . .502
Using Behaviors to detect browsers and plugins. . . . . . . . . . . . . . . . . .503
Previewing in browsers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .504
Checking links in a page or site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .506
Checking download time and size . . . . . . . . . . . . . . . . . . . . . . . . . . . .509
Using Reports to test a site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .509

Contents

9

CHAPTER 22
Customizing Dreamweaver . . . . . . . . . . . . . . . . . . . . 513
Changing the default file type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .514
Modifying the Objects panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .515
Creating a simple object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .516
About customizing Dreamweaver menus. . . . . . . . . . . . . . . . . . . . . . .517
Customizing the appearance of dialog boxes . . . . . . . . . . . . . . . . . . . .529
Changing default HTML formatting . . . . . . . . . . . . . . . . . . . . . . . . .530
Working with browser profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .532
Extending Dreamweaver: Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .536
Customizing the interpretation of third-party tags . . . . . . . . . . . . . . .537
APPENDIX
Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . 545
File menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .545
Edit menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .546
Page views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .546
Viewing page elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .547
Code editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .547
Editing text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .549
Formatting text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .550
Finding and replacing text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .550
Working in tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .551
Working with frames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .551
Working with layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .552
Working with timelines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .552
Working with images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .553
Managing hyperlinks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .553
Targeting and previewing in browsers . . . . . . . . . . . . . . . . . . . . . . . . .553
Debugging in browsers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .554
Site management and FTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .554
Site map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .555
Playing plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .555
Working with templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .555
Inserting objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .556
History panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .556
Opening and closing panels. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .557
Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .557
Keyboard Shortcut Matrix. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .558
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563
10

Contents

INTRODUCTION

Getting Started

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Macromedia Dreamweaver is a professional HTML editor for visually designing
and managing Web sites and pages. Whether you enjoy the control of handcoding HTML or prefer to work in a visual editing environment, Dreamweaver
makes it easy to get started and provides you with helpful tools to enhance your
Web design experience.
Dreamweaver includes many coding tools and features: an HTML, CSS, and
JavaScript reference, a JavaScript Debugger, and code editors (the Code view and
Code inspector) that allow you to edit JavaScript, XML, and other text documents
directly in Dreamweaver. Macromedia Roundtrip HTML technology imports
HTML documents without reformatting the code—and you can set
Dreamweaver to clean up and reformat HTML when you want it to.
The visual editing features in Dreamweaver also let you quickly add design and
functionality to your pages without writing a line of code. You can view all your
site elements or assets and drag them from an easy-to-use panel directly into a
document. Streamline your development workflow by creating and editing images
in Macromedia Fireworks, then importing them directly into Dreamweaver, or by
adding Flash objects you create directly in Dreamweaver.
Dreamweaver is fully customizable. Use Dreamweaver to create your own
objects and commands, modify keyboard shortcuts, and even write JavaScript
code to extend Dreamweaver capabilities with new behaviors, Property inspectors,
and site reports.

11

System requirements
The following hardware and software is required to run Dreamweaver.
For Microsoft Windows:

• An Intel Pentium processor or equivalent, 166 MHz or faster, running
Windows 95, Windows 98, Windows 2000, Windows ME, or Windows NT
(with Server Pack 3)

•
•
•
•

Version 4.0 or later of Netscape Navigator or Microsoft Internet Explorer
32 MB of random-access memory (RAM) plus 110 MB of available disk space
A 256-color monitor capable of 800 x 600 pixel resolution
A CD-ROM drive

For the Macintosh:

•
•
•
•

A Power Macintosh running Mac OS 8.6 or 9.x
32 MB of random-access memory (RAM) plus 135 MB of available disk space
A 256-color monitor capable of 800 x 600 pixel resolution
A CD-ROM drive

Installing Dreamweaver
Follow these steps to install Dreamweaver on either a Windows or a
Macintosh computer.
To install Dreamweaver:

1

Insert the Dreamweaver CD into the computer’s CD-ROM drive.

2

Choose from the following options:

• In Windows, choose Start > Run. Click Browse and choose the Dreamweaver 4
Installer.exe file on the Dreamweaver CD. Click OK in the Run dialog box to
begin the installation.

• On the Macintosh, double-click the Dreamweaver Installer icon.

12

Introduction

3

Follow the onscreen instructions.

4

If prompted, restart your computer.

Learning Dreamweaver
Macromedia Dreamweaver includes a variety of resources to help you learn the
program quickly and become proficient in creating your own Web sites and pages.
These resources include a printed book, online help pages, Guided Tour movies,
a tutorial, and interactive lessons. You can also find regularly updated tips,
TechNotes, examples, and information at the Dreamweaver Support Center on
the Macromedia Web site.
Start by viewing the Guided Tour movies to learn about Dreamweaver features.
Next, complete the Dreamweaver tutorial. Finally, try the Dreamweaver lessons to
learn how to accomplish specific tasks in Dreamweaver.
Guided Tour movies
The Guided Tour movies provide an animated overview of the Web development
process and take you through a tour of Dreamweaver features.
To view a Guided Tour movie, choose Help > Guided Tours and click one of the
movie titles. When each movie is over, click the Home button to return to the list
of movies, then click another movie. You can watch the whole tour or skip ahead
to see particular sections.
Tutorial
The Dreamweaver tutorial is the best place to start if you want to get some handson experience creating pages in Dreamweaver. By working through the tutorial,
you’ll learn how to create a sample Web site with some of the most useful and
powerful features of Dreamweaver. The tutorial is in both Dreamweaver Help and
the Using Dreamweaver book. You can also download a printable version of the
tutorial at the Macromedia Web site.
The tutorial includes sample pages and assets (images and Macromedia Flash files)
to help you get started developing a Web site.
Dreamweaver lessons
Dreamweaver comes with a set of interactive lessons. Each lesson takes you
through the steps of a specific task and includes sample pages that contain all the
design and functional elements needed. Use the lessons as step-by-step guides with
the sample pages, or as a guide as you work in your own pages.
To locate the lessons, choose Help > Lessons and select a topic.

Getting Started

13

Dreamweaver user guide (printed book)
Using Dreamweaver provides a printed alternative to Dreamweaver Help, and
contains information on using Dreamweaver commands and features. Certain
reference topics about program options are not included in the printed book; see
Dreamweaver Help for information on those topics.
If you purchased the Electronic Software Download (ESD) version of
Dreamweaver, you can download a printable version of Using Dreamweaver from
the Dreamweaver Support Center at http://www.macromedia.com/support/
dreamweaver/documentation.html.
Dreamweaver Help
Dreamweaver Help provides comprehensive information about all Dreamweaver
features, optimized for use online.
For best results viewing Dreamweaver Help, use Netscape Navigator 4.0 or later
or Microsoft Internet Explorer 4.0 or later.
Dreamweaver Help makes extensive use of JavaScript. Make sure that JavaScript is
enabled in your browser. If you plan to use the search feature, make sure that Java
is enabled as well.

14

Introduction

Dreamweaver Help includes the following components:
Contents enables

you to see all of the information organized by subject. Click
top-level entries to view subtopics.
The index, like

a traditional printed index, can be used to find important terms
and go to related topics.
Search allows

you to find any character string in all topic text. The search feature
requires a 4.0 browser with Java enabled.
Note: When you click Search, a Java security window may appear, asking for permission
to read files on your hard disk. You must grant this permission for the search to work. The
applet does not write anything to your hard disk, nor does it read any files outside
Dreamweaver Help.

• To search for a phrase, simply type the phrase in the text field.

• To search for files that contain two keywords (for example, layers and styles),
separate the search terms with a plus (+) sign.

Getting Started

15

Context-sensitive help provides

a Help button in each dialog box, or a question
mark icon in inspectors, windows, and panels, that opens a relevant help topic.
Click here to open Help

The Dreamweaver Help navigation bar provides

buttons you can click to move
through topics. The right and left arrow buttons move to the previous or next
topic in a section (following the topic order listed in the table of contents).

Extending Dreamweaver
The Extending Dreamweaver help system provide information on the
Dreamweaver Document Object Model and the APIs (application programming
interfaces) that allow JavaScript and C developers to create objects, commands,
property inspectors, behaviors, and translators.
Dreamweaver Support Center
The Dreamweaver Support Center Web site is updated regularly with the latest
information on Dreamweaver, plus advice from expert users, examples, tips,
updates, and information on advanced topics. Check the Web site often for the
latest news on Dreamweaver and how to get the most out of the program at
http://www.macromedia.com/support/dreamweaver/.
Dreamweaver discussion group
Discuss technical issues and share helpful hints with other Dreamweaver
users by visiting the Dreamweaver discussion group. You’ll find information
about accessing the discussion group on the Macromedia Web site at
http://www.macromedia.com/software/dreamweaver/discussiongroup/.

16

Introduction

Web development workflow
The Web development workflow starts with the process of defining a site’s strategy
or goals, progresses to design (where you work out the look and feel of a
prospective site), and moves into the production or development phase (where
the site is built and pages are coded); the site is tested for functionality and to see
if it meets its defined objectives, and then the site is published. Many developers
also schedule periodic maintenance to ensure that the site remains current
and functional.
To make it easier for you to find the information you need as you develop Web
sites, the Using Dreamweaver documentation is divided into broad sections that
model this standard approach to Web development—site planning, design,
development, testing, and publishing and maintenance.
About site Planning
Planning and organizing your site carefully from the start can save you time later
on. Organizing your site includes much more than determining where the files
will go: site planning often involves examining site requirements, audience
profiles, and site goals. Additionally, you should consider technical requirements
such as user access, and browser, plugin or download restrictions.
Once you’ve organized your information and determined an operating structure,
you begin creating your site.

• Determine what strategy to employ and user issues to consider as you plan your
site. See “Planning and Setting Up Your Site” on page 95.

• Use the Dreamweaver site map to set up your site’s organizational structure. In
the Dreamweaver Site window you can easily add, delete, and rename files and
folders to change the organization as you need. See “Site Management and
Collaboration” on page 107.
If you work on a Web Development team, you may also be interested in
these topics:

• Set up systems that will prevent team members from overwriting files; see
“Setting up the Check In/Check Out system” on page 132.

• Use Design Notes to communicate with Web team members; see “Saving file
information in Design Notes” on page 135.

Getting Started

17

About designing Web pages
Most Web design projects start with storyboards or flowcharts that are turned
into sample pages. Use Dreamweaver to create mock-up sample pages as you
work toward a final design. Mock-ups usually show the design layout, site
navigation, technical components, themes and color, and graphic images or
other media elements.

• Create HTML documents in Dreamweaver, easily add page title, or
background color. See, “Setting Up a Document” on page 149.

• Dreamweaver Layout view and layout tools let you quickly design Web pages
by drawing and then rearranging the page structure. See, “Designing Page
Layout” on page 167.

• Use the Dreamweaver Objects panel to design and quickly add tables, create
frame documents, design forms, and work with layers. See “Using Tables to
Present Content” on page 183, “Using Frames” on page 203, “Using Dynamic
Layers” on page 407, and “Creating Forms” on page 481.
About adding content
Using Dreamweaver, you can easily add a variety of content to Web pages. Add
assets and design elements, such as text, images, colors, movies, sound, and other
forms of media.

• The Assets panel lets you easily organize the assets in a site; you can then drag
most assets directly from the Assets panel into a Dreamweaver document. See
“Managing and Inserting Assets” on page 221.

• Type directly in a Dreamweaver document, or import text from other
documents, then format the text using the Dreamweaver Property inspector, or
HTML Styles panel. You can also easily create your own Cascading Style
Sheets. See “Inserting and Formatting Text” on page 233.

• Insert images, including rollover images, image maps, and Fireworks sliced
images. Use alignment tools to position images in a page. See “Inserting
Images” on page 267 and “Using Dreamweaver and Fireworks Together” on
page 281.

• Insert other types of media in a Web page, such as Flash, Shockwave, and
QuickTime movies, sound, and applets. See “Inserting Media” on page 297.

• Add content in the Dreamweaver code editor: Use the Dreamweaver Code
view or Code inspector to write your own HTML or JavaScript code. “Editing
HTML in Dreamweaver” on page 321.

18

Introduction

• With Dreamweaver you can create standard HTML links, including anchor
links and e-mail links, or easily set up graphical navigation systems, such as
jump menus and navigation bars. See “Linking and Navigation” on page 353.

• Dreamweaver templates and library files let you easily apply reusable content in
your site. You can create new pages from the template, then add or change
content in the editable areas. See “Reusing Content with Templates
and Libraries” on page 375.
About interactivity and animation
Many Web pages are static, containing only text and images. Dreamweaver allows
you to go beyond static pages, using interactivity and animation to capture
visitors’ interest. You can give visitors feedback as they move and click,
demonstrate concepts, validate form data without contacting the server—in short,
you can let visitors see and do more within the page.
There are several ways to add interactivity and animation to your pages
using Dreamweaver:

• Use timelines to create animations that do not require plugins, ActiveX controls,
or Java. Timelines use dynamic HTML to change the position of a layer or the
source of an image over time or to call behavior actions automatically after the
page has loaded. See “Using Dynamic Layers” on page 407.

• Use behaviors to perform tasks in response to specific events, such as highlighting
a button when the visitor passes the pointer over it, validating a form when the
visitor clicks the Submit button, or opening a second browser window when the
main page is finished loading. See “Using Behaviors” on page 435.

• Debug custom JavaScript code. See “Debugging JavaScript Code” on page 473.
• Use forms to allow your site visitors to enter data directly on the Web page. See
“Creating Forms” on page 481.

Getting Started

19

About testing and publishing your site
Your site is complete and ready for the world—but before you publish it on a
server, you must test the site. Depending on the size of the project, client
specifications, and kinds of browsers that visitors will use, you may need to move
your site to a staging server where it can be tested and edited. When corrections
have been made, you publish the site where the public can access it. Once the site
is published, establish a maintenance cycle to ensure quality, respond to user
feedback, and update the site’s information.
Use the following Dreamweaver features to test and publish your sites:

• To add new tags in a page or fix your code, use the Dreamweaver Reference
panel to look up JavaScript, CSS and HTML code. See “Using the
Dreamweaver Reference panel” on page 328.

• Use the JavaScript Debugger to help you fix JavaScript errors in your code.
The debugger lets you set breakpoints in the code, then allows you to view the
code as a page is debugged right in Dreamweaver. See “Debugging JavaScript
Code” on page 473.

• Run browser and plugin checks, test and fix links in your documents, and run
site reports to check HTML files for common mistakes. See “Testing and
Publishing a Site” on page 501.

• In the Dreamweaver Site window you’ll find many tools to help you manage your
site, transfer files to and from a remote server, set up a Check In/Check Out
process to prevent files from being overwritten, and synchronize the files on your
local and remote sites. See “Site Management and Collaboration” on page 107.

Where to start
This guide includes information for readers at a variety of levels. To get the most
out of the documentation, start by reading the parts that are most relevant to your
level of experience.
For HTML novices:

20

Introduction

1

Begin by watching the Guided Tour movies. From the Dreamweaver main
menu, choose Help > Guided Tours.

2

Next, work through the Dreamweaver tutorial. Choose Help > Tutorial, or
follow the steps in the printed manual.

3

Work through the lessons for the topics that interest you. Choose Help >
Lessons, then select a lesson.

4

Progress through “Dreamweaver Basics” on page 71, “Planning and Setting Up
Your Site” on page 95, “Site Management and Collaboration” on page 107, and
“Linking and Navigation” on page 353.

5

To learn about formatting text and including images in your pages, read “Inserting
and Formatting Text” on page 233 and “Inserting Images” on page 267.

That’s all you really need to begin producing high-quality Web sites, but when
you’re ready to learn how to use more advanced layout and interaction tools, you
can proceed through the rest of the book in order. You may want to skip
“Customizing Dreamweaver,” at least at first.
For experienced Web designers who are new to Dreamweaver:

1

Begin by watching the Guided Tour movies. From the Dreamweaver main
menu, choose Help > Guided Tours.

2

Work through the Dreamweaver tutorial to learn the basics of using
Dreamweaver. Choose Help > Tutorial, or follow the steps in the
printed manual.

3

Work through the lessons for the topics that interest you. Choose Help >
Lessons, then select a lesson.

4

Read “Dreamweaver Basics” on page 71 for a further overview of the
Dreamweaver user interface.

5

Although much of the material in “Site Management and Collaboration” on
page 107 and “Linking and Navigation” on page 353 is probably familiar to
you, skim those chapters to see how these familiar concepts are implemented in
Dreamweaver; pay particular attention to Using Dreamweaver to set up a new
site. Then read “Site Management and Collaboration” on page 107.

6

“Inserting and Formatting Text” on page 233 and “Inserting Images” on page
267 provide useful information on the details of using Dreamweaver to create
basic HTML pages.

7

Read the overview at the beginning of each subsequent chapter to determine
whether its topics are of interest to you.

For experienced Web designers who are familiar with Dreamweaver 3:

1

Begin by reading “What’s new in Dreamweaver 4” on page 22. Follow the
cross-references from that section to sections covering new Dreamweaver
features.

2

You may want to skim “Dreamweaver Basics” on page 71 to learn about new
aspects of the Dreamweaver user interface.

3

Check out the Dreamweaver lessons; choose Help > Lessons for a list of
interactive lessons you can try.

4

If you’re interested in customizing and extending Dreamweaver, read
“Customizing Dreamweaver” on page 513.
Getting Started

21

Typographical conventions
The following typographical conventions are used in this guide:

•

Code font

•

Italic code font

indicates HTML tag and attribute names as well as literal text
used in examples.
indicates replaceable items (sometimes called
metasymbols) in code.

• Bold roman text indicates text for you to enter verbatim.

What’s new in Dreamweaver 4
The new features in Dreamweaver 4 enhance HTML editing, make it easier to
design pages, improve site and asset management, let you create your own Flash
objects, streamline your workflow, improve team collaboration, and allow you to
customize and extend Dreamweaver.
Enhanced code editing
The Dreamweaver toolbar allows you to manage how you view a page—Design
view, Code view, or a view of both code and design. The toolbar provides easy
access to commonly used features such as Preview in Browser and Design Notes.
See “Using the toolbar” on page 78
Code view provides a new way to view HTML source code directly in the
Dreamweaver Document window. See “Opening the Code view (or Code
inspector)” on page 331. You can also edit non-HTML documents such as
JavaScript files and XML files directly in the Dreamweaver Code view. See
“Inserting scripts” on page 335.
Integrated code editors Dreamweaver now has integrated, state-of-the-art code
editors—the Code view and the Code inspector. You can set word wrapping, code
indenting, live syntax coloring, and more from the Options menu in either of
these editors. See “Setting Code view (or Code inspector) options” on page 333.
The Reference panel is a quick reference tool for HTML, JavaScript, and CSS. It

provides information about the specific tags you are working with in the Code view
(or Code inspector). See “Using the Dreamweaver Reference panel” on page 328.
The Code Navigation pop-up menu allows you to select code for JavaScript
functions in a page; by using this menu, you can quickly navigate JavaScript code
while working in Code view. See “Viewing script functions” on page 337.
The JavaScript Debugger lets you debug JavaScript document while in
Dreamweaver. For example, you can set breakpoints to control the code you want
to examine. See “Debugging JavaScript Code” on page 473.

22

Introduction

Easier page design
Layout view lets you quickly design your Web pages by drawing boxes (tables or cells)

to which you can add content. See “Drawing layout cells and tables” on page 170.
make it easier for you to identify the editable regions in a
template file. Templates now display a tab that contains the editable region’s name
and a bounding rectangle. See “Creating templates” on page 377.

Improved templates

can now be defined as soon as you create a new style. You can
also easily attach an existing CSS style sheet with a button in the CSS Styles panel.
See “Using CSS style sheets” on page 248.
CSS style sheets

Improved integration
are now built right into Dreamweaver. You can pick
from a set of predefined Flash buttons and insert them into your document or
have your Flash designer create custom button templates for you. See “Using Flash
button objects” on page 301 and “Using Flash text objects” on page 304.
Flash buttons and Flash text

Roundtrip slicing lets you work seamlessly between Dreamweaver and Fireworks 4.

You can edit and update images and HTML tables you import from Fireworks.
You can also edit in Dreamweaver or Fireworks and have the changes preserved in
both places. See “Editing Fireworks files placed in Dreamweaver” on page 288.
The Web-safe color picker allows you to easily match colors with graphics. With
just one click, you can select a color from anywhere on the desktop and the color
picker snaps to the nearest Web-safe color. See “Working with colors” on page 87.

Getting Started

23

Streamlining your workflow
The Assets panel allows you to manage your site’s assets. You can see all the
images, colors, external URLs, and scripts, as well as Flash, Shockwave,
QuickTime, template, and library items in a central location. Preview assets, and
then drag them right into place on your HTML document. Save commonly used
assets in a favorites list and reuse them across sites. See “Using the Assets panel” on
page 222 and “Using favorite assets” on page 229.
Improved Design Notes let you attach notes to a file so you can track changes or

communicate about development issues with other members of your team. You can
insert and view comments directly in the Dreamweaver Site window. See “About
Design Notes” on page 134 and “Using reports to improve workflow” on page 141.
Integrated e-mail allows you to communicate with team members. When a file is
checked out by someone else, you can now click on the team member’s name to send
an e-mail message. See “Setting up the Check In/Check Out system” on page 132.

lets you use several predefined reports to test common HTML
document problems, such as untitled documents or missing alt tags. You can also
write custom reports to suit your needs, display report results, and open problem
files within the Report results window. See “Setting up the Check In/Check Out
system” on page 132 and “Creating reports” on page 510.
Site reporting

SourceSafe integration If you own SourceSafe, you can now check files into and
out of SourceSafe while working in Dreamweaver. See “Using Dreamweaver with
Visual SourceSafe” on page 128.

now use Dreamweaver to transfer files using the WebDAV
protocol. See “Using Dreamweaver with the WebDAV protocol” on page 127.
WebDAV integration

The Package Manager (formerly the Extension Manager) easily install extensions

with a single click. Visit the Macromedia Exchange and download useful extensions
to make your job easier. See “Adding extensions to Dreamweaver” on page 93.
Common user interface
have a new interface that is common to all Macromedia Web
publishing products. This new interface allows you to edit existing keyboard
shortcuts, create new shortcuts for menu items, and delete keyboard shortcuts you
don’t want. You can also switch between sets of keyboard shortcut configurations.
See “Using the Keyboard Shortcut Editor” on page 90.

Keyboard shortcuts

Window management is now improved: all windows snap into place. When you
open a new window, Dreamweaver prevents it from overlapping visible panels.

now have a new Macromedia look and behave consistently across the Web
publishing products. All panels have icons and text so that you can easily identify
them. Panels all use system colors and fonts on both Windows and Macintosh
systems, and have consistent snapping and dragging behaviors.
Panels

24

Introduction

HTML and Web technologies resources
The following are some useful resources available on the Web:
The HTML 4.0 specification (http://www.w3.org/TR/REC-html40/) is the official

specification for HTML from the World Wide Web Consortium.
Index DOT HTML (http://www.blooberry.com/indexdot/html/) is a comprehensive

listing of HTML tags, attributes, and values, as well as their compatibility with
the various browsers.
The ZDNet Developer Tag Library (http://www.zdnet.com/devhead/resources/
tag_library/) is another listing of information about all HTML tags.
The Cascading Style Sheets, level 1 specification (CSS1) (http://www.w3.org/TR/

REC-CSS1) is the official specification for style sheets from the World Wide Web
Consortium.
Web Review Style Sheets Reference Guide (http://webreview.com/guides/style/

style.html) explains what CSS styles are and which browsers they work in.
“CGI Scripts for Fun and Profit” (http://www.hotwired.lycos.com/webmonkey/

99/26/index4a.html) is an article from the Hotwired Webmonkey site on
incorporating ready-made CGI (Common Gateway Interface) scripts
into your pages.
The CGI Resource Index (http://www.cgi-resources.com/) is a repository of all
things related to CGI, including ready-made scripts, documentation, books, and
even programmers for hire.
The Common Gateway Interface site (http://hoohoo.ncsa.uiuc.edu/cgi/)

includes

an introduction to CGI.
(http://www.bbsinc.com/iso8859.html) lists the entity names used
in ISO 8859-1 (Latin-1).
Entities Table

The Dynamic HTML Events page (http://msdn.microsoft.com/workshop/author/
dhtml/reference/events.asp#om40_event) provides information about events in
Microsoft Internet Explorer.
Microsoft ASP Overview pages (http://msdn.microsoft.com/workshop/server/
asp/ASPover.asp) provide information about Active Server Pages (ASP).
Sun JSP page (http://java.sun.com/products/jsp/)

provides information about

JavaServer Pages (JSP).
The PHP pages (http://www.php.net/) provide information about PHP:
Hypertext Preprocessor.
Allaire ColdFusion product page (http://www.allaire.com/Products/ColdFusion)

provides information about ColdFusion.

Getting Started

25

The XML.com site (http://www.xml.com) provides information, tutorials, and tips

about Extensible Markup Language (XML), as well as other Web technologies.
JavaScript Bible,

by Danny Goodman (IDG Books), comprehensively covers the
JavaScript 1.2 language.

JavaScript: The Definitive Guide,

by David Flanagan (O’Reilly & Associates),
provides reference information for every JavaScript function, object, method,
property, and event handler.

Accessibility and Dreamweaver
Macromedia supports the creation of great Web experiences that are accessible to
everyone, including those with disabilities. We encourage the implementation of
international standards to guide developers of accessible sites, including the
guidelines offered by the World Wide Web Consortium (W3C). Many
government policies on Web accessibility, including those of the United States,
reference W3C guidelines. W3C guidelines on Web content encourage developers
to adopt design and coding practices for accessibility, many of which are robustly
supported by Macromedia products. For more information on W3C guidelines,
please consult the Web Content Authoring Guidelines (http://www.w3.org/TR/
WAI-WEBCONTENT/full-checklist.html).
For the latest information on product features and resources that support
accessible design, please see Macromedia's accessibility page (http://
www.macromedia.com/accessibility/).

26

Introduction

1

CHAPTER 1

Dreamweaver Tutorial

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

The Dreamweaver tutorial walks you through the steps of building Web pages.
You’ll learn how to use Macromedia Dreamweaver to define a local site, and you’ll
use Dreamweaver panels and tools to create and edit Web documents.
In this tutorial, you’ll create Web pages for Compass, a fictitious company that
specializes in adventure travel. If you’re new to Dreamweaver, start at the
beginning of the tutorial and work your way through the end. If you’re already
familiar with Dreamweaver, you may want to start at “Use the Assets panel” on
page 56; this section and those that follow it focus on new or changed features in
Dreamweaver such as the Assets panel, Flash buttons and text, using a template,
running a site report and adding a Design Note.
The tutorial takes approximately one to two hours to complete, depending on
your experience, and focuses on the following Dreamweaver tasks:

•
•
•
•
•
•
•
•
•
•

Defining a local site
Creating a page in Layout view
Inserting an image and a rollover image
Working with tables in Standard view
Creating a link to another document
Inserting assets from the Assets panel
Inserting Flash Text and Flash Button objects
Creating and applying a template
Running a site report
Adding a Design Note

Note: This tutorial demonstrates some features that are supported only in 4.0 or
later browsers.

27

Take a guided tour of Dreamweaver
Before you get started, watch the Guided Tour movies to familiarize yourself with
the Web development process and with Dreamweaver features.
1

In Dreamweaver, choose Help > Guided Tour.

2

Click a movie title.

3

Close the movie when you finish.

The Dreamweaver work area
Let’s start with a brief overview of the Dreamweaver work area.

• If you haven’t already launched Dreamweaver, double-click the Dreamweaver
icon to launch it.
The Dreamweaver work area accommodates different styles of working
and levels of expertise. When you launch Dreamweaver, the following work
area items open:

Toolbar

Document window

Objects panel

Floating panel

Tag selector

Launcher bar
Property inspector

• The Document window displays the current document as you create and edit it.
• The Objects panel contains icons you click to insert objects in your document,
and to change the way you work in a document.

28

Chapter 1

• Dreamweaver provides many floating panels, such as the HTML Styles panel and
the Code inspector, which enable you to work with other Dreamweaver elements.

• The Launcher bar contains buttons for opening and closing your most
frequently used inspectors and panels.

• The Property inspector displays properties for the selected object or text, and
lets you modify those properties. (Which properties appear in the inspector
depend on the object actively selected in the document.)
To open Dreamweaver windows, inspectors, and panels, use the Window menu. A
check mark next to an item in the Window menu indicates that the named item is
currently open (though it may be hidden behind other windows). To display an
item that isn’t currently open, choose the item name from the menu or use its
keyboard shortcut.
Working in Dreamweaver
Dreamweaver can display a document in three ways: in Design view, in Code
view, and in a split view that shows both the design and code. (To change the view
in which you’re working, select a view in the Dreamweaver toolbar.) By default,
Dreamweaver displays the Document window in Design view.
In addition, you can work with the Dreamweaver Design view in two different
ways—in Layout view and Standard view. (You select these views in the View
category of the Objects panel.) In Layout view you can design a page layout, insert
graphics, text, and other media; in Standard view, in addition to inserting graphics
text and media, you can also insert layers, create frame documents, create tables,
and apply other changes to your page—options that aren’t available in Layout view.
How the tutorial files are arranged
Both the completed and partially completed HTML files used in this tutorial
are in the Compass_Site folder in the Tutorial folder. Images and other associated
files for the site are also in the Compass_Site folder.
Each tutorial file has a meaningful name—for example, the HTML file that
contains travel destination information is named Destinations.html. The partially
completed files—which you’ll be working on—have names similar to their
completed file counterparts, except they begin with DW4_; the partially
completed version of Destinations.html, for example, is called
DW4_Destinations.html.

Dreamweaver Tutorial

29

Preview the completed Web site
Next, view pages in the completed Web site to get an idea of what you’ll be
working toward.
1

If you haven’t already done so, launch Dreamweaver.

2

In Dreamweaver, choose File > Open. In the file browsing dialog box, navigate
to the Dreamweaver 4 folder (where you installed Dreamweaver); then navigate
to Tutorial/Compass_Site.

3

In the Compass_Site folder, select CompassHome.html, and then click Open
to open the Compass home page in the Document window.
Do not edit this page; you will create your own version of this page.

4

Choose File > Preview in Browser and select a browser in which to view the
Compass home page. (Use a version 4.0 or later browser to view this site.)

5

Move the pointer over the navigation buttons to see rollover image effects.
Click the navigation buttons to explore the site.

30

Chapter 1

6

Close the browser when you’re finished looking at the site.

7

Open a new blank document in Dreamweaver, choose File > Open.

8

Close the CompassHome.html file, which is open in Dreamweaver.

Set up the site structure for the tutorial
There are two ways you can work with the tutorial files—use a predefined local
site or define a local site.

• If you’re new to Dreamweaver, you may want to define the local site for the
tutorial so you’ll know how to set up a local site when you’re ready to work on
your own sites.

• If you’re already familiar with defining a site using Dreamweaver, you may want
to use the predefined tutorial site. From the Dreamweaver main menu
choose Site > Open Site, then select Tutorial - Dreamweaver. The Tutorial Dreamweaver site links to the Compass_Site files located in the Dreamweaver
4/Tutorial folder. After selecting the local site, skip to the “Create the site home
page” on page 34 section of the tutorial.
Note: If you select the predefined site, the site name displayed in the tutorial
screenshots will not match; instead of seeing my_tutorial, you’ll see Tutorial Dreamweaver as the site name in your screens.

Define a local site
When you define a local site, you tell Dreamweaver where you plan to store all the
files for a particular site. To work effectively in Dreamweaver, always define a local
site for each Web site you create.
For this tutorial, you’ll specify the Compass_Site folder as the local site folder.
1

If it isn’t already open, launch Dreamweaver.
A blank document opens.

2

Choose Site > New Site.

3

In the Site Definition dialog box, make sure Local Info is selected in the
Category list.

4

In the Site Name field, type my_tutorial.
The site name lets you easily identify and select a site from a list of sites
you’ve defined.

5

Click the folder icon to the right of the Local Root Folder field.

Dreamweaver Tutorial

31

6

In the dialog box that appears, navigate to the Tutorial/Compass_Site folder,
and do one of the following:

• In Windows, click Open, then click Select when Compass_Site appears in
the Select field.

• On the Macintosh, click Choose to select the Compass_Site folder.
The Local Root Folder field updates to display the path to the local site.

Note: The complete path to the Compass_Site folder may vary, depending on where
you installed Dreamweaver.

7

Under Cache, do one of the following:

• Select Enable Cache (Windows) to create a cache file for the site.
• Select Use Cache to Speed Link Updates (Macintosh) to create a cache
file for the site.
Caching the files in the Compass_Site folder creates a record of existing
files so Dreamweaver can quickly update links when you move, rename,
or delete a file.
8

32

Chapter 1

Click OK to close the dialog box.

9

Click OK to the cache message.
The Site window now displays a list of all the folders and files in the local site.
The list also acts as a file manager, allowing you to copy, paste, delete, move,
and open files just as you would on a computer desktop.

Dreamweaver Tutorial

33

Create the site home page
Now that a site structure is set up for storing pages and assets for the Compass
site, you’ll create the first page—a home page for the site. As you build this page,
you’ll add images, text, and Flash assets; your document will contain the same
design components as the completed Compass home page.
Save your document
Begin by saving the document you’re working in.
1

Leave the Site window open, and click the Document window to make
it active.
The Site window remains open in the background.

2

Choose File > Save.

3

In the Save As dialog box, select the Compass_Site folder as the location for
this document.

4

In the File Name field, type my_CompassHome.html.

5

Click Save.
Notice that the document name now appears at the top of the Document window.

34

Chapter 1

Define the document page title
Though the document has a file name, notice it is still labelled Untitled
Document; that’s because it needs an HTML document name, or page title.
Defining a page title helps site visitors identify the page they’re browsing: the
page title appears in the browser title bar and in the bookmark list. If you create
a document without a page title, the document appears in the browser with the
title Untitled Document.
In this part of the tutorial, you’ll title your page.
1

With the Document window active, choose View > Toolbar if the toolbar isn’t
already visible.
The Dreamweaver toolbar appears above the Document window

2

In the Title field, type Compass Home Page; then click in the Document
window to see the page title update in the Document window’s title bar.

3

Save your file.

Design a page in Layout view
You’ll start your first page while working in the Dreamweaver Design view. You’ll
lay out the page then insert images and text.
The page you complete in this section of the tutorial will look similar to this page.

Dreamweaver Tutorial

35

Work in Layout view
Dreamweaver has two visual design views—Standard view and Layout view. You’ll
start by working in Layout view, which allows you to draw layout cells or layout
tables into which you can add content such as images, text, or other media.
In this part of the tutorial, you’ll lay out the page; in the next section you’ll add
content. (Once you’re comfortable with these two tasks, you may find it easier to
add layout and content together.)
1

In the Objects panel, click the Layout View icon if it isn’t already selected.
Draw Layout Cell icon
Draw Layout Table icon
Layout View icon

The Getting Started in Layout View dialog box appears and describes the
Layout view options.

36

Chapter 1

2

Review the options, then click OK to close the dialog box.

3

In the Objects panel under Layout notice the Layout options—Draw Layout
Cell and Draw Layout Table—are now available; these options aren’t available
in Standard view.

Draw layout cells
In Layout view you can draw layout cells and layout tables to define the design
areas of a document. This task is easier to accomplish if you prepare a sample of
the page you’re creating before you begin laying out a page.
Look at the following sample layout to get an idea of the page layout you’re
creating in this section of the tutorial. There’s a cell for the Compass logo, a table
with three cells for site navigation buttons, a cell for another graphic, and a table
for three cells that will hold text.

You’ll draw tables and cells similar to this layout as you work in your document.
First, you’ll draw a layout cell in which you’ll insert the Compass logo.
1

Click in the Document window of the my_CompassHome document to make
the document active.

2

If they aren’t already open, open the following work area tools:

• The Objects panel (choose Window > Objects), which you’ll use to add objects
to your document.

• The Property inspector (choose Window > Properties), which you’ll use to set
properties or attributes for objects in your document. If the Property inspector
isn’t already expanded, click the expander arrow in the lower right corner so
you can see all the property options.
3

In the Objects panel, click the Draw Layout Cell icon.

Dreamweaver Tutorial

37

4

Move the pointer to the Document window; the mouse pointer changes to a
drawing tool (looks like a small cross). Click in the upper left corner of the
document, then drag to draw a layout cell.
When you release the mouse, a layout cell appears in a layout table.
Layout
Cell
Layout
Table

The layout table expands to fill the Document window, and defines the page
layout area. The white rectangle is the layout cell you drew. You can place
additional layout cells in the gray area of the layout table.
Resize layout cells
To precisely design a page, you can set the size of cells you add in a document. You
can also reposition cells in the page.
1

Click the border of the layout cell to select it.
Handles appear around a selected layout cell:

38

Chapter 1

2

To resize this layout cell, do one of the following:

• In the Property inspector for the layout cell, type 510 in the Fixed field to set the
cell’s width to 510 pixels, then click in the document to see the cell width change.
Note: If you enter a pixel width that is larger than the width of the layout table, or that
causes the cell to overlap another cell in a layout table, Dreamweaver alerts you and
adjusts the cell width to a valid width.

• On the right side of the layout cell, drag the middle resize handle to the right
until the cell is the desired width. When you release the mouse, the cell’s width
is displayed in the column header area along the top of the layout table.

Add multiple layout cells
Next you’ll add three layout cells below the logo cell you just created. Later you’ll
insert the page’s navigation buttons in these cells.
1

In the Objects panel, click the Draw Layout Cell icon; then hold down the
Control key (Windows) or Command key (Macintosh).

2

In the Document window, position the pointer below the cell you drew for the
logo; then drag to draw a layout cell.
Continue to hold the Control key (Windows) or Command key (Macintosh)
and draw two more layout cells. Your screen should look similar to this.

Dreamweaver Tutorial

39

Move a layout cell
If you need to line up the cells next to each other you can resize and move the
layout cells as you need. You change the size of a layout cell by using one of its
resize handles.
You cannot click and drag a cell to move it to a new position. If you need to move
a layout cell to reposition it in a document, follow these steps.
1

Click the border of a layout cell to select it.

2

To move the layout cell, do one of the following:

• Use the arrow keys.
• Hold down Shift and use the arrow keys to move a layout cell 5 pixels at a time.
Group cells in a layout table
Now you’ll create a table of the navigation button cells you just created. Grouping
the cells in a table enables you to control the cell spacing and to easily move the
cells as a group if you want change the page layout. You’ll create a table for the
navigation buttons that is the same width as the logo cell above it.
Use Draw Layout Table to group the navigation button images.

40

Chapter 1

1

In the Objects panel, click the Draw Layout Table icon.

2

In the Document window, position the pointer at the top left corner of the first
navigation button cell; then drag the pointer so the table contains the three
cells and is the length of the logo cell.

3

Release the mouse to see the cells grouped in a new table.

You’ve created a table that contains three layout cells (the white area in the
table) and an empty space (the gray area in the table).
Move the layout table
You can select and move a layout table to other areas in a document. You cannot,
however, move a layout table so that it overlaps another.
Next you’ll move the table you just created a few pixels to the right to offset the
alignment of the navigation buttons to the logo when they are inserted in the page.
1

In the Document window click the tab on the Layout table to move it.

2

Drag the layout table a few pixels to the right to reposition it, then drag one of
the table’s right resize handles to align the right sides of the logo and navigation
button layout cells.

Notice that as you create new tables and cells, gridlines appear outlining the
layout area. You can use these gridlines to align the layout elements.

Dreamweaver Tutorial

41

Add another layout cell
Next add a layout cell for the Learn More About graphic.
1

In the Objects panel, click the Draw Layout Cell icon.

2

In the Document window, draw a new cell in the space below the navigation
button table.

Your page should look similar to this:

Create a layout table
In the last section you used cells to create a table. Now, you’ll start with a table
and add cells.

42

Chapter 1

1

In the Objects panel, click the Draw Layout Table icon.

2

Move the pointer to the Document window. In the area below the layout cell
you just added, drag the pointer to the right to align with the right side of the
topmost cell; then drag down to the bottom of the Document window.

Draw layout cells in a table
Now add layout cells into which you’ll add text about travel locations.
1

In the Objects panel, click the Draw Layout Cell icon and move the pointer to
the layout table you just drew.

2

Draw a table cell approximately one-third the space in the table.

3

Click the border of the layout cell to select it; then in the Property inspector’s
Fixed field, type 170 to set the cells width.

4

Draw another table cell approximately one-third the space in the table next to
the first cell.

5

Click the border of the layout cell to select it; then in the Property inspector’s
Fixed field, type 170 to set the cells width.

6

Draw the last table cell in the remaining space in the table. Resize or move the
cells to adjust the size or position of the cells as needed.

Your screen should look similar to this:

Dreamweaver Tutorial

43

Add content to the page
Now that you’ve laid out the areas of the page, you’ll add the graphical content,
such as the logo, and rollover images.
Insert images
You’ll learn two ways to insert images in Dreamweaver—using Dreamweaver’s
main menu and using the Objects panel.
1

Click anywhere in the logo layout cell (the topmost layout cell).
Clicking in a layout cell places the insertion point in the cell without
selecting the cell.

2

Choose Insert > Image.

3

In the Select Image Source dialog box, locate the Compass_Site folder
and navigate to the Assets folder, then the images folder; click the
compass_logo.gif to select it.

4

Make sure the Relative To pop-up menu located at the bottom of the dialog
box is set to Document, then click Select (Windows) or Open (Macintosh) to
select the image.
The image appears in the layout cell.

5

Click anywhere in the Learn More About layout cell to place the insertion
point in the cell.

6

In the Objects panel’s Common category, click the Insert Image icon.

7

In the Select Image Source dialog box, locate the Compass_Site/Assets/images
folder, and navigate to learnMoreAbout.gif; then click Select (Windows) or
Open (Macintosh) to select the image.
The image appears in the layout cell.

8

44

Chapter 1

Choose File > Save to save the changes you made to the home page.

Create a rollover image
A rollover image is an image whose display changes when the pointer passes
(“rolls”) over it.
You’ll use the Insert Rollover Image command to create three rollover images for
the navigation buttons—Trip Planner, Destinations, and Travel Logs.
A rollover image consists of two images: the image displayed when the page first
loads in the browser, and the image displayed when the pointer moves over the
original image. Be sure to use images that are the same size. The first image
dictates the size of the display, so if the second image is much smaller or much
larger, the results will look distorted or unprofessional.
Next, you’ll add a navigation button with a rollover image to your page.
Then you’ll add the other navigation buttons and preview the page in a browser
to test the rollovers.
1

In the Document window, click in the first cell of the navigation button table.
This tells Dreamweaver where you want the image inserted.

2

To insert a rollover image, do one of the following:

• In the Common category of the Objects panel, click the Insert Rollover
Image icon.

• Choose Insert > Interactive Image > Rollover Image.
3

In the Insert Rollover Image dialog box, type planner in the Image Name field.
This gives the image a unique name, and makes it easily identifiable in the
HTML code.

4

In the Original Image field, click Browse; then navigate to
MenuTripPlanner.gif and click Select (Windows) or Open (Macintosh).
This tells Dreamweaver which image to display when the page first loads.

5

In the Rollover Image field, click Browse; then navigate to
MenuTripPlanner_on.gif and click Select (Windows) or Open (Macintosh).
This tells Dreamweaver which image to display when the pointer is over
the original image.

Dreamweaver Tutorial

45

6

Make sure the Preload Rollover Image option is selected so the rollover images
load when the page loads in the browser, ensuring a quick transition between
images when a user moves the pointer over the original image.

7

Click OK to close the dialog box.
The image appears in the document.

8

Resize the layout cell to fit the image.

Create the other rollover images
Now you’ll add rollover images for the other navigation buttons.

46

Chapter 1

1

In the Document window, click in the second navigation button cell; then in the
Common category of the Objects panel, click the Insert Rollover Image icon.

2

In the Insert Rollover Image dialog box, type destinations in the Image Name
field to provide the image a unique name.

3

In the Original Image field, click Browse, then navigate to and select
MenuDestinations.gif.

4

In the Rollover Image field, click Browse, then navigate to and select
MenuDestinations_on.gif.

5

Make sure the Preload Rollover Image option is selected, then click OK to close
the dialog box.

6

In the Document window, click in the third navigation button cell; then in the
Objects panel’s Common category, click the Insert Rollover Image icon.

7

In the Insert Rollover Image dialog box, type travellog in the Image Name field
to provide the image a unique name.

8

In the Original Image field, click Browse then navigate to and select
MenuTravelLogs.gif.

9

In the Rollover Image field, click Browse then navigate to and select
MenuTravelLogs_on.gif.

10

Make sure the Preload Rollover Image option is selected, then click OK to close
the dialog box.

11

Resize the two layout cells to fit the image.

Preview your document
You cannot view rollover behavior in the Dreamweaver Document window;
rollover images work only in a browser. However, you can preview the document
in Dreamweaver to see its browser-related functions. You do not have to save the
document before you preview it.
1

Press F12 to see your document in a Web browser.

Move the mouse pointer over the rollover images you created to see them change.
2

When you finish previewing the file, close the browser window.

3

Return to the Dreamweaver Document window and choose File > Save to save
the changes you made to the home page.

Dreamweaver Tutorial

47

Insert text
Now you’ll add text in the cells of the bottom layout table.
In Dreamweaver, you can type content directly into a layout cell, or you can cut
and paste content from another document into a layout cell. In this tutorial, you’ll
add text to the layout cell by copying and pasting content from an existing text file
to a layout cell.
1

Choose File > Open; then, in the Compass_Site folder, open
DW4_HomeText.txt.
The DW4_HomeText.txt document opens in a new Dreamweaver
Document window.

2

In DW4_HomeText.txt select the first two lines of text, “Fly Fishing”
through “ravioli.”

3

Choose Edit > Copy to copy the text.

4

In the my_CompassHome document, click in the first layout cell in the textdescription layout table.

5

Choose Edit > Paste to paste the text into the layout cell.

6

In DW4_HomeText.txt select the next two lines of text, “Level 5 Rapids”
through “Siberia.”

7

Choose Edit > Copy to copy the text.

8

In the my_CompassHome document, click in the second cell in the text
description layout table.

9

Choose Edit > Paste to paste the text into the layout cell.

10

In DW4_HomeText.txt select the last two lines of text, “Puget Sound
Kayaking” through “Puget Sound.”

11

Copy the text, then paste it in the third cell in the layout table.

12

Close DW4_HomeText.txt, then click in the my_CompassHome.html to
make it the active document.

Format text
You can format text in the Document window by setting properties in the
Property inspector. First, select the text you want to format, then apply the
changes. You’ll change the font type and size of the text.

48

Chapter 1

1

If the Property inspector isn’t open, choose Window > Properties.

2

In the first text description layout cell, select all the text from the word “Fly,”
through the last word “ravioli.”

3

In the Property inspector’s second Format pop-up menu, which currently reads
Default Font, select Verdana, Arial, Helvetica, sans-serif.

4

In the Size pop-up menu, select 2.
The text in your document automatically updates to reflect the changes.

5

Repeat the above steps to select and format the text in the other two textdescription layout cells.

Apply color and style
Now you’ll apply additional formatting changes to the text; you’ll apply color and
style to create heading text.
1

In the first text description layout cell, select the heading text from the word
“Fly,” through the word “Mountains.”

2

In the Property inspector, click the color picker; then move the eyedropper to
the Learn More About image in the document window and select the brown
color of the text in the image.

3

Still in the Property inspector, click the B icon to apply bold style to the text.

4

Repeat the above steps to apply color and style to the heading text in the other
text description layout cells.

5

Press F12 to preview your page in a browser.
Your page should look similar to the page below.

Notice the text. There is little separation between text in one layout cell and the
next. You’ll fix that in the upcoming tutorial steps.
6

Close the browser window, then click in the Document window to
make it active.

Dreamweaver Tutorial

49

Work in Standard view
Layout view is helpful for laying out Web pages. Though you can adjust most of
your design elements in Layout view, certain changes must be completed in
Standard view. When you switch to Standard view, you’ll see how Dreamweaver
uses tables to create your page structure. The Layout tables in Layout view are
 tags in Standard view.
Now you’ll learn how to work with tables to continue fine-tuning your design.
First, you’ll switch to the Dreamweaver Standard view.

• In the Objects panel, click the Standard View icon.
Your page should look similar to the screen below.

Set cell properties
Cell height determines the height of the space within a cell row. Notice the space
around the Compass logo. You want to remove the extra space between the logo
and navigation buttons.
1

Click anywhere in the blank area of the cell containing the Compass logo
image (but not the image itself ).

2

In the cell Property inspector, in the H field (height), that currently contains a
value, delete the value.

3

Still in the Property inspector, click the Bg color box icon located in the bottom
area of the Property inspector; then use the eyedropper to select black.
The background color is applied to the cell.

4

50

Chapter 1

Click anywhere in the Document window to see the change.

Selecting a table
Next you’ll adjust the space in the navigation button table. The easiest way to
select a table in Standard view is by using the tag selector, which displays HTML
tags of elements in the document.
You’ll use the tag selector to select the table containing the navigation buttons.
1

Click in the cell that contains the Trip Planner image.
Notice the tag selector at the bottom left of the Document window.

Note: The tags in your tag selector may vary based on the number of tables you created
while in Layout view.

2

In the tag selector, click the rightmost 
tag. In the Document window a border appears around the navigation button table, and the Property inspector now reflects properties for a table. Set table properties Now you’ll use the table Property inspector to clear the extra space in the navigation buttons table and to add a background color in the table. 1 In the Property inspector, click the Clear Row Heights icon. It’s the top left button in the lower half of the Property inspector. The extra space is removed from the table. 2 Still in the Property inspector, click the Bg Color color box icon, then use the eyedropper to select the color black. The black background color is applied to the navigation buttons table. Dreamweaver Tutorial 51 Add cell padding Next, you’ll make changes to the cells that contain text. As you can see, the text is too close the edges of the cells. You’ll add padding to the cells to leave room between the text and cells. 1 Click in the first cell in the text description table. 2 In the tag selector, click the rightmost
tag to select the table. 3 In the Property inspector’s CellPad field, type 10 to add 10 pixels of space between the text and the table cells. 4 Click anywhere in the Document window to see the changes. 5 Save your document. View the site files To see a high-level representation of the structure of a local site, you use the Dreamweaver Site Map view. You can also use the site map to add new files to the site; to add, remove, and change links; and to create a graphic file of the site that you can export to and print from an image-editing application. The site map always displays the home page for a site at the top of the map; below the home page you can see which files the home page links to. There are a number of ways to define a site’s home page. The easiest way to set a home page is by using the context menu within the Site window. 1 Click the title bar of the Site window to make it active. (If the Site window is not visible, choose Window > Site Files.) 2 In the Site window’s Local Folder list, right-click (Windows) or Control-click (Macintosh) the my_CompassHome.html document; then in the context menu, choose Set as Home Page. 3 Click the Site Map icon in the top left area of the Site window; then in the Site Map pop-up menu, select Map and Files. Site Map icon 52 Chapter 1 The Site window now appears with two views of your local site: on the left is a site map, which graphically represents the current structure of the Compass site (with my_CompassHome.html as the home page), and on the right is a list of the local folder’s contents. The my_CompassHome.html page currently has no links. You’ll add links to this page in the next section of this tutorial. Leave the Site window open for now, so you can see how the site map updates as you add links to the home page. Dreamweaver Tutorial 53 Link your documents Images in the top area of the Compass home page guide visitors to specific pages in the site. Now you’ll add links for the navigation buttons. You’ll see that there are a number of ways to create links using Dreamweaver. First, you’ll add a link from the Trip Planner image to the TripPlanner.html page using the Property inspector. 1 In the Site window, double-click the icon for the my_CompassHome.html file in either pane. The my_CompassHome.html file becomes the active window. 2 In the Document window, click the Trip Planner image once to select it. 3 Choose Window > Properties to open the Property inspector if it isn’t already open. The Property inspector displays information about the selected image. Note: The Link field contains a number sign (#), often referred to as a null or “dummy” link, created when you inserted the rollover image. Don’t remove this character. It will soon be replaced with the file name of the document you link to. 4 In the Property inspector, click the folder icon to the right of the Link field. 5 In the Select File dialog box, browse to the Compass_Site folder and then to DW4_TripPlanner.html; click Select (Windows) or Open (Macintosh) to select the file to open when the Trip Planner button is clicked. The file name appears in the Link field of the Property inspector. Now you’ll add a link to the Destinations image using the Property inspector and the Site window. 54 Chapter 1 6 Click the title bar of the Site window to make it active, or choose Window > Site Files. Resize your Document window, if necessary, so that you can position the left side of the Document window and the Site window side by side. 7 In the Document window, click the Destinations image to select it. 8 In the Property inspector, click the Drag to File icon (located to the right of the Link field), then drag the pointer to the Site window; in the Local Folder List, point to the file DW4_Destinations.html. The file name appears in the Link field in the Property inspector for the products image. 9 Click the Site Map icon in the Site window. The site map updates to reflect the link you added. A plus (+) sign next to any file in the site map indicates that the file contains links to other documents. Click the plus sign to expand the site map to display the associated files; click the minus (–) sign to collapse the site map. Next, you’ll add a link for the Travelogs image. 10 In the Document window, click the Travelogs image to select it. 11 In the Property inspector, drag the Point-to-File icon to the Site window, and point to the file DW4_Travelog.html. 12 Choose File > Save to save the changes you’ve made to the home page. Dreamweaver Tutorial 55 Test your page You can’t test your links in Dreamweaver, you must check your links in a browser to make sure the pages operate as you expect. 1 Press F12 to preview the page in a browser. Click the navigation buttons to check your links. Click your browser’s back button to return to your home page. 2 When you’re finished testing your page, choose File > Close to close the page. Use the Assets panel The Assets panel lets you view your site assets such as images, HTML colors, links, Flash movies, other types of movies, scripts, templates, and library items. You can view all your site assets in one place and then easily add content to your page directly from the panel. Now you’ll learn how to use the Assets panel to add assets to a page. Select a new document So you don’t need to create additional tables in your home page, this tutorial includes an HTML file that is similar to the home page you created; it includes a new table cell on the right side of the document. To start this part of the tutorial do one of the following: • If you’re continuing the tutorial from the previous section, choose File > Open then select DW4_CompassHome2.html. • If you’re starting the tutorial in this section, choose Site > Open Site, then in the Sites list select Tutorial - Dreamweaver to open a defined site. In the Document window’s main menu choose File > Open; in the dialog box that appears, select DW4_CompassHome2.html. The DW4_CompassHome2.html file opens. 56 Chapter 1 View site assets Begin by opening the Assets panel. 1 Open the Assets panel by doing one of the following: • Choose Window > Assets. • Click the Show Asset icon in the Launcher Bar. The Assets panel appears. Assets preview area Asset options Dreamweaver Tutorial 57 Insert an image You’ll start by using the Assets panel to insert two images in the page—a rock climber image and a text image. 1 In the Assets panel, click the Images icon and make sure the Site radio button located at the top of the Assets panel is selected so you can view all of the images in the Compass site. 2 In the Names list, select the image icon for climber.jpg then drag it to the middle table cell in the right side of the page. 3 Press the right arrow key (this deselects the climber image and places the insertion point after the image), then press Shift+Enter (Windows) or Shift+Return (Macintosh) to insert a line break. 4 In the Name list, select featureText.gif then drag it to the line break you just created placing the featureText image under the climber image. Insert a Flash movie Now you’ll add a different type of asset. You’ll drag a Flash movie into the cell below the navigation buttons. 1 Click the Flash icon in the Assets panel to view all the Flash files in the Compass site. 2 In the Names list, click welcome.swf to select the Flash movie you’re inserting in the document. In the Assets panel’s preview area you see a placeholder for the Flash movie. 58 Chapter 1 3 Click the Play button in the Assets panel’s preview area to view the Flash movie. Play button 4 In the Names list, drag the Welcome.swf to the cell below the Trip Planner navigation button. A Flash move placeholder appears in the selected cell. Apply a color using the Assets panel Colors you apply to HTML elements, such as to text or as a background color, are automatically added to the color category of the Assets panel. You can select a color from the Assets panel and apply it to text in the same page or to other pages in your site. 1 Place the insertion point after the rock climber image, then press Enter (Windows) or Return (Macintosh) to add a new paragraph, then type Yosemite. 2 Double-click Yosemite to select the text. 3 In the Assets panel, click the Colors icon to view HTML colors in the Compass site. 4 In the Value list, select the color icon for #993300 then drag it to the selected text to apply the color. Create a favorite assets list Use the Assets panel to manage your assets. You can create your own group of favorites assets in the Assets panel. Next, you’ll add the Compass logo and navigation button image to your site Favorites list. 1 In the Assets panel, select the Images icon. 2 In the Name list, click compass_logo.gif to select it, then do one of the following: • Right-click (Windows) or Control-click (Macintosh) to use the context menu, then select Add to Favorites. • Click the Add to Favorites icon located in the lower right of the Assets panel. You are alerted that the selected asset was added to your site’s Favorites list. 3 Click OK. Dreamweaver Tutorial 59 Add multiple images to favorites Now, you’ll add the navigation button images to the favorites list. You can select multiple images in the Assets panel, then add them to your favorites at one time. 1 In the Assets panel’s Images list click the first navigation button image (MenuDestinations.gif ). 2 Select the other navigation buttons by doing one of the following: • Press Shift (Windows) and in the Images list click MenuTripPlanner_on.gif (the last navigation button in the list) to select all of the navigation button images. • Press Shift (Macintosh) and hold it while you select each of the navigation button images. 3 Click the Add to Favorites icon. 4 Click OK to the alert message. View favorite assets You can view the assets you’ve added to your Favorites list, and use this view for inserting assets in your document. To view images you’ve added to the Favorites list, click the Favorites radio button at the top of the Assets panel. Insert Flash objects Flash objects are small graphic SWF (Shockwave) files you can create while working in Dreamweaver. You can create Flash Text and Flash Button objects. Using Flash Text allows you to design Web pages that use nonstandard fonts without worrying about which fonts visitors to your site have available on their computers. Flash buttons are created from Flash templates that ship with Dreamweaver. You can easily customize a template button and add it to your Web pages. 60 Chapter 1 Create a Flash Text object Now you’ll create a Flash Text object to use as a title in your home page. 1 In the Document window, place the insertion point above the image of the rock climber. 2 In the Object panel, click the Insert Flash Text icon. The Insert Flash Text dialog box appears. 3 In the Insert Flash Text dialog box, set the following options: • For Font, select Verdana or choose one of your favorite fonts. • For Size, type 18. • For Color, click the color box, then use the eyedropper to select brownish color of the heading text in the document. • For Rollover Color, click the color box; then move the eyedropper to the Document window and select the gold color in the table’s background. • In the Text field, type Featured Destination. • In the Save As field, type myText.swf. 4 Click OK to close the Insert Flash Text dialog box. Dreamweaver Tutorial 61 View the Flash Text object in the document The Flash Text object appears in the document. You must play the Flash object to see the text with its rollover effect. 1 If it isn’t already expanded, in the Property inspector click the expander arrow to see all. 2 In the Flash Text Property inspector, click Play. 3 In the Document window, roll the pointer over the Flash Text object. 4 To stop playing the object, click Stop in the Property inspector. Create a Flash button object Now you’ll see how easy it is to add a Flash button to a document. You’ll create a Flash button, and add it below the climber image. 1 In the Document window, place the insertion point where you want the object to appear, below the image of the rock climber, then in the Objects panel, click the Insert Flash Button icon. The Insert Flash Button dialog box appears. 62 Chapter 1 2 In the Insert Flash Button dialog box, set the following options: • • • • • • In the Style list, select Beveled Rect-Bronze. 3 Click OK to close the dialog box. For Button Text, type More Details. For Font, select Verdana, or choose one of your favorite fonts. For Size, type 11. Click Apply to see the Flash button in the document. In Save As, type myButton.swf The Flash Button object appears in the document. View the Flash button in the document The Flash button you inserted has a rollover effect, now you’ll play the button to see how it looks. 1 In the Flash button Property inspector, click Play to play the button in the document. 2 In the Document window, roll the pointer over the object to see the Flash button’s rollover effect. 3 To stop playing the object, click Stop in the Property inspector. Create a template You can use templates to create documents that have a common structure and appearance. Templates are useful when you want to make sure that all of the pages in a site share certain characteristics. Once you apply a single template to a group of pages, you can change information on the group of pages by editing the template and then reapplying it to those pages. While elements unique to each page (such as text describing an item for sale) remain unchanged, common template elements (such as navigation bars) are updated on all of the pages that use the template. The Compass trip destination page links to several travel detail pages that describe places site viewers may be interested in traveling to. You’ll use the design of an existing travel detail page to create a template. Using a template ensures that your travel information pages will have an identical layout and format. Dreamweaver Tutorial 63 Create a template from an existing page In this section, you’ll create a template from an existing travel page and then use the template to create a new travel page. 1 In the Site window’s Local Folder list, double-click the icon for DW4_TravelDetail_surf.html to open the file. 2 Choose File > Save as Template. The Save As Template dialog box appears. The existing templates, travelDetail and travelDetail_v2, were created for and applied to the completed Compass site travel pages. You’ll create your own version of this template. 3 In the Save As field, change the template name: type myTravelDetail and click Save. In the Document window a new document replaces the DW4_TravelDetail document. In the document title bar, notice the document contains a Template identifier <