Exploring The Dreamweaver Environment: Chapter One
Exploring The Dreamweaver Environment: Chapter One
Exploring the
Dreamweaver
Environment
#
1 Workspace Setup
for Windows
Windows users launching Dreamweaver 8 for the first time will
Designing Pages in be prompted to choose between Designer and Code workspaces.
Code view or the Code The Code workspace is for page designers who want to write their
Inspector own code—HTML (for page formatting) JavaScript (for animation
Dreamweaver 8’s Document win- and interactivity), CSS (for sitewide and page-specific formatting
dow provides three views: Code, rules), and so on. Most people use Dreamweaver because they don’t
Split, and Design. Code (and want to write their own code; they want to design page elements in
Split) views facilitate develop- a graphical environment and have Dreamweaver generate code for
ers who want to write their own them. To utilize the code-generation capabilities of Dreamweaver,
markup code, rather than have most users will want to choose the Designer workspace. And, of
Dreamweaver generate it. These course, you can flip between views.
views are covered in #2, “Explor-
ing the Document Window.” Tip
Dreamweaver’s Code Inspec- The Code workspace (not to be confused with Code view—which is
tor window—available in both available in both versions of Dreamweaver 8) is one of the few remaining
Windows and Mac versions—is differences between the Windows and Mac versions of Dreamweaver.
accessed from the Window Dreamweaver 8 for Windows and Dreamweaver 8 for Mac are essen-
menu (Window > Code Inspec- tially the same program. So why the Code workspace for Windows? Just
tor). The Code Inspector is a as humans have retained some anatomical attributes of our evolution-
highly functional code-writing ary ancestors, the two versions of Dreamweaver have minor differences
environment with a toolbar that due, in part, to the fact that Dreamweaver for Windows inherits a user
provides prompts as you enter base of designers who migrated to Dreamweaver through a Web design
code, and prepackaged code program called Homesite.
snippets. The Code Inspector Mainly to accommodate (former) Homesite designers, Dream-
allows you to collapse or expand weaver for Windows provides the Code workspace layout. When you
sections of coding, making it
launch Dreamweaver for Windows for the first time, the Workspace
easier to focus on and edit sec-
Setup dialog box prompts you to choose between Designer view
tions of code.
and Code view (Figure 1a).
If, at any point, you want to switch to or from Code view in Dream-
weaver 8 for Windows, choose Window > Workspace Layout > Designer
to return to the normal Dreamweaver interface (Figure 1b).
Figure 1b Choosing
Designer mode.
#
2 Exploring the
Document Window
The Document window is the basic workspace in Dreamweaver. The
Choosing a Document Document window is where you design Web pages; you can create
Type (DTD) or paste text, embed images, define links, or place and sometimes
Dreamweaver 8 uses XHTML 1.0 create page elements like style sheets (that control the look of a
Transitional as the default docu- page), input forms, animation, and interactive objects (that react
ment type for HTML Web pages. to actions by a visitor). In short, the Document window is where
By generating XHTML-compat- you will spend the bulk of your time in Dreamweaver. Even if you
ible coding for your Web page, have some familiarity with creating pages in Dreamweaver, there
you allow your Web page to are many features rooted within the various elements of the Docu-
integrate cutting-edge dynamic ment window, so it is worthwhile to explore them in some detail.
data content—content that is
You’ll see the Document window when you open an existing Web
updated at a remote source and
page or when you create a new one. Use the File menu to open an
embedded (updated) in your Web
page. Such dynamic data sys- existing Web page (File > Open, or File > Open Recent to access a list
tems are issues that are decided of recently opened pages) or to create a new Web page (File > New).
at systemwide levels, not by a When you choose File > New, the New Document dialog opens.
Web page designer. But again, Throughout this book we will explore some of the more useful
by accepting Dreamweaver’s Categories of new documents, but the first and main type of new
default document type of XHTML document you’ll create in the New Document dialog is a Basic page,
1.0 Transitional, you embed the and the basic and main type of Web page you’ll create is an HTML
ability to interact with and dis- page (Figure 2a).
play dynamic data at any stage of
system development.
Figure 2a New Document dialog, with a new HTML Web page selected.
Figure 2b Split view in the Document window displays code on top, and a
graphical design interface on the bottom.
You can adjust the units displayed for window size, or the connec-
tion speed used to estimate download time in the Status Bar category
of the Preferences dialog. On the Mac, choose Dreamweaver > Prefer-
ences, and in Windows choose Edit > Preferences, and then select the
Status Bar category to edit these parameters (Figure 2d).
#
3 Viewing Panels and
the Property Inspector
Many of the features explored in other chapters and How-Tos in
this book are available in panels—rectangular boxes that are nor-
mally aligned to the right of the Document window. While each
panel obviously controls different features of your Web site or Web
pages, panels have some features in common.
Dreamweaver panels all provide access to very different features.
But there are display elements common to all panels (Figure 3a).
You can drag panels from their default position on the right side
of the Document window by dragging on the Panel grip.
#
3: Viewing Panels and the Property Inspector
#
4 Examining the Standard
and Document Toolbars
Many of Dreamweaver’s page design tools are most easily accessed
through toolbars. The Standard toolbar has some basic tools that Page Title and Page
are common to almost any application. The Document toolbar, on File Name
the other hand, provides access to an underappreciated set of rather Every Web page has both a file
powerful page design and management tools. The toolbars reside name and a page title. The file
at the top of the Document window, and are displayed (if they are name is the “internal” name—
hidden) by choosing them from the View > Toolbars menu. the way the file is identified and
The tools in the Standard toolbar allow you to create new files, located within a Web site, and
open existing files, print code, copy, cut, paste, and undo or redo the way browsers find the file.
an action. All these features are accessible from either the File or File names must be supported
by Web servers, and therefore
Edit menus (Figure 4a).
developers often avoid special
Print Code Cut characters and stick to alpha-
Save All Copy numeric characters and lower-
Save Paste case in defining page file names.
Open Undo While file names are not the
New Redo main or most obvious way visi-
tors will identify a page, they’re
not hidden or secret, so that
should be kept in mind when
Figure 4a The Standard toolbar. assigning file names.
Page titles are not part of the
The Document toolbar collects some of the most frequently used process of identifying or linking
tools used for page design and management. The three buttons on a file; they are an attribute of
the left allow you to toggle between Code, Split, and Design view the page that describes or sum-
marizes the page content for
(these views are discussed for both Mac and Windows users in #1,
visitors. They can contain spe-
“Workspace Setup for Windows.”
cial characters, including punc-
The Document toolbar also provides a convenient way to define tuation and spaces.
a page title—the page “name” that displays in the title bar of a
As noted, every page has a page
visitor’s browser. You define a page title by typing the text to be
title, but unless you assign a
displayed as a title in the Title box in the Document toolbar. page title, the default “Untitled
Page” page title appears in
browser title bars.
The rest of the Document toolbar tools are used for managing
documents, document display, and file management (Figure 4b).
Browser preview
Manage files between local site and remote server
Validate Markup
Browser compatibility error indicator
#
5 Viewing Style
Rendering Toolbars
The Style Rendering toolbar is another exciting CSS designer-friendly
innovation in Dreamweaver 8. With the advent of Dreamweaver MX Printable CSS
2004, Dreamweaver made Cascading Style Sheets (CSS) the default By providing an alternate page
method for applying formatting to type. When you choose type attri- (or site) style sheet for printing,
butes in the Properties Inspector, Dreamweaver generates CSS code you can allow visitors to print
instead of older, less-flexible HTML formatting attributes. a printer-friendly version of the
The Style Rendering toolbar (Figure 5) facilitates quick tog- page that displays differently
gling between “bare” type (and other elements) and viewing the than the Web version of the
page with CSS formatting applied. Bare type is type stripped of all page. See #40, “Defining CSS
for Printable Pages,” in Chapter
formatting (colors, fonts, adjusted font sizes, line spacing, etc.).
8 for a full explanation of how
This allows you to easily isolate and work on page content and see
to create a CSS file to define a
I changed page content as it will display in browsing environments that do printable page.
this to 5 not support CSS formatting.
rather than Note
5a because Browsing environments that don’t support CSS formatting (or that apply
there is different CSS formatting than that defined by the Web designer) include
only one browsers configured for handicapped viewers (including people with
figure for 5. various vision disabilities), devices like cell phones or PDAs that do not
Okay? support a full set of CSS formatting options, or devices where the user
has elected to enforce their own style choices for personal reasons.
#
5: Viewing Style Rendering Toolbars
Tip
Dreamweaver allows you to generate separate sets of styles (CSS) for
digitally displayed content (viewed on a monitor) and print output. Gen-
erating CSS files for onscreen and print display are discussed in How-To
#
56, “ Creating and Updating an External Style Sheet File”
You can define additional CSS files for use with handheld media,
projection media (Web pages projected in full-screen slideshow
format), TTY format (media output that requires font defined in
points, not pixels), or TV media type.
#
6 Using the
Insert Toolbars
The Insert toolbars are the ubiquitous blue-collar power tools
of Dreamweaver. As these toolbars provide access to the bulk of
Dreamweaver’s features, many developers keep them displayed at
all times for quick access to features that can also be found, less
conveniently, in Menu options or panels. Since a large percentage
of Dreamweaver features, ranging from everyday (inserting images)
to esoteric (detailed database management) are accessible from
the nine basic tabs in the Insert toolbars, they will be invoked
throughout this book. Here, the point is to get comfortable with
how the Insert toolbar works.
The Insert toolbars are a set of toolbars. You get the whole
package: Common, Layout, Forms, Text, HTML, Application, Flash
elements, and Favorites.
To display the Insert toolbars, choose View > Toolbars > Insert.
By default, the Insert toolbars display in Menu form—you use a
drop-down menu to switch between the eight different iterations
of the toolbar (Figure 6a).
#
6: Using the Insert Toolbars