Dreamweaver Cs4 Introduction
Dreamweaver Cs4 Introduction
Dreamweaver Cs4 Introduction
1
1
1
3
3
4
4
5
5
6
6
6
EXERCISE 1
8
9
9
EXERCISE 2
10
10
10
11
13
13
14
14
15
EXERCISE 3
15
EXERCISE 4
16
16
17
17
RESOURCES ...................................................................................... 18
Faculty / Staff Resource Center
Training & Tools eNewsletter
Getting Help
Campus Resources
Books on Dreamweaver and HTML
18
18
18
18
18
WORKSHOP DESCRIPTION
Overview
Want to learn how to create your own Web pages or brush up on your Web editing skills?
Creating Web pages and managing your Web site with Dreamweaver is easier than you might
think. This workshop introduces you to the Dreamweaver environment and its basic Web
editing tools. Topics include: creating a new Web document, defining a site, adding new content
and importing existing text from Microsoft Word, formatting text and inserting images.
Prerequisites
Individuals taking this workshop should also have basic computer skills, knowledge of the Web,
basic Web browser skills, and the ability to effectively work in the Windows or Macintosh OS
environment.
Objectives
Participants attending this workshop will:
Attain a beginning understanding of the Dreamweaver environment.
Use Dreamweaver to:
Create a new Web document.
Define a Site.
Add new content from a Microsoft Word document.
Format and style text.
Insert images.
INTRODUCTION TO DREAMWEAVER
Adobe Dreamweaver CS4 is a full-featured Web design suite that allows you to create and edit
HTML and XHTML documents (Web pages). With Dreamweaver, as with other HTML and
XHTML editors, knowledge of the XHTML mark-up language is not required to create
professional-grade websites.
Unlike many Web editors, Dreamweaver is a paletted environment. This means that the user
interface is a series of windows or palettes, called panels, which can be moved around the screen
by the user. If you have used Adobe Photoshop then you have already been introduced to a
paletted environment.
The remainder of this document will use screen samples from the Windows-based version of
Dreamweaver CS4.
Dreamweaver: Introduction
1
2
4
Sample Dreamweaver Interface
Legend
1
Objects (Insert) Panel Allows you to add images, tables, and multimedia to your Web
pages. Available from the Window menu.
Toolbar Shortcuts for Document window commands, text field for page title.
Document Window Provides a work area to insert and arrange text, images, and
other elements of your Web page.
Properties Panel Allows you to view and modify properties of an object that is
selected in the Document window.
History Panel Tracks commands you perform and allows you to return your page to a
previous state by backtracking through those commands.
Files Panel Lists the various folders and files associated with the site.
Dreamweaver: Introduction
Document Window
The Document window contains the toolbar, document title, file name, Code View window to
view the HTML and XHTML code, and the WYSIWYG window to view your Web page
graphically (Design View).
Code View
Design View
Toolbar
The toolbar is actually part of the Document window and allows you to toggle between the
Code View and Design View windows (View Modes), set your page title, preview your page in a
browser, select different view options and check your document for browser-specific errors.
View modes
Preview in
browser
View
options
Browser
check
Dreamweaver: Introduction
Insert Panel
The Insert panel contains various icons that allow you to easily insert different types of elements
into your Web documents. For example, insert a table, picture or horizontal rule.
or
Properties Panel
Using this panel you can modify the properties of an element selected in the Document window.
Text Properties
Image Properties
HR Tag Properties
Dreamweaver: Introduction
History Panel
This panel makes it easy to undo multiple actions at the same time. To undo a series of actions
place your cursor in the Design view document, then within the History panel click and drag the
undo slider to the desired position.
To activate the History panel: go to Window > History or press Shift+F10.
History
panel undo
slider
1. Click the Help menu and select Dreamweaver Help. This opens a browser to the Adobe
Dreamweaver Help and Support site.
3. Click the Help menu and select Reference. The Results panel opens to the Reference tab.
Here you can select a Book and then get more detailed information from pages of that book.
This is a great way to learn more about HTML and XHTML from the O'Reilly HTML
Reference book.
Dreamweaver: Introduction
step 1. Click the File menu and select New. The New document window appears.
step 2. From the New Document window select the Blank Page tab, then the HTML
Dreamweaver: Introduction
step 3. Enter a name for your site in the Site name field.
step 4. Click the folder icon at the end of Local root folder field to locate a local folder to
serve as the master folder for all of your files for this site.
step 5. Click the folder icon at the end of Default images folder field to locate a local
folder that contains all of your image files for this site.
step 6. Click OK to create your new site.
Once you have defined your Dreamweaver site it is visible in the Files panel. Here
you can simply double-click any file listed to open and edit it. You can also move
and/or rename a file without incurring any broken links.
Dreamweaver: Introduction
Dreamweaver: Introduction
Previewing in a Browser
You can preview your pages in a Web browser by either selecting File > Preview in Browser or
on the Document Window Toolbar. In addition, you can
by clicking the preview button
add to the list any browser installed on your computer e.g. Firefox by using the Edit
Browser List option.
1. If you have not already done so, create a site that points to the dw-intro folder.
2. From the dw-intro site, open the file sacstate.htm in Dreamweaver.
3. Add a page title and background color to your document.
4. Save your changes to the sacstate.htm file.
5. Preview your updated document in Microsoft Internet Explorer or Firefox.
Dreamweaver: Introduction
Creating Paragraphs
To create a new paragraph in Dreamweaver, place your cursor in the Design view document
and press the Enter key (PC) or Return key (Macintosh). This will create a new pair of
paragraph tags with a blank space, represented as <p> </p>. Since there is no easy
way to indent the first line of a paragraph on a Web page, individual paragraphs are separated by
a double space.
Creating Headings
To create a heading, click and drag the mouse pointer over the text to select it, and then use the
Format drop-down menu on HTML portion of the Properties panel to select the desired
heading value, such as heading 1.
Dreamweaver: Introduction
10
step 1. Click and drag the mouse pointer over the text to highlight it.
step 2. Click the CSS button
on the Properties panel.
step 3. Select a property to change, such as the Font from the drop-down menu. The first
time you select a property on the CSS screen the New CSS Rule window appears.
This window allows you to create a new rule (style) a group of properties that
can be applied to different selections on your webpage, or only to the text you just
selected.
step 4. From the Selector Type drop-down menu be sure that Class is chosen.
step 5. Type a name for your selector (style) in the box beneath Selector Name. Do not
uses spaces or any special characters, only lowercase letters and numbers. You can
use a dash between words, such as text-green, to make it more readable.
step 6. Under Rule Definition, select (This document only) to create a new CSS rule
within this webpage. If you have many webpages and want to share a group of
styles between them, you can select (New style sheet file). This option creates an
external CSS file that can be linked to each of your webpages so they share a
common list of styles.
Dreamweaver: Introduction
11
step 7. Click OK. The CSS Rule definition window appears. Here you can edit the
properties of your new style to apply to the text you selected in step 1 above.
step 8. When you complete your changes, click OK. The window closes and displays your
highlighted text in the Design View area with your style applied to it. The name of
your rule appears in the Targeted Rule drop-down list while the text is selected.
step 9. To further change the way your new style appears, click inside the text area
associated with the rule (or highlight it), then click the Edit Rule button in the CSS
portion of the Properties panel.
step 10. In the CSS Rule definition window for your selected style, make the necessary
changes to the properties.
step 11. When you complete your changes, click OK.
Dreamweaver: Introduction
12
2. Format the text to make it appear similar to the Web page sacstate_ex2.htm,
including:
a. Inserting new paragraphs after the section titles Faculty Resources and
Library Instruction.
b. Adding headings to Faculty Resources and Library Instruction, and
create a new style (rule) with custom properties of your choosing.
c. Changing font face, size, color and bold or italics of some of the text
create new styles (rules) for each set of properties.
d. Center the university address at the bottom of the page, change its color
and insert line breaks between each section of the address (see
sacstate_ex2.htm).
Dreamweaver: Introduction
13
Macintosh.
step 4. Open your HTML or XHTML document in Dreamweaver then place the cursor in
the document where you want to paste your content.
step 5. Paste your content into your Dreamweaver document using either Edit > Paste or
Edit > Paste Special.
step 6. Format the text in your Dreamweaver document as you would like it to appear on
your Web page. Some of the formatting from the word processor may have been
lost.
Indenting a Paragraph
You can use the increase/decrease indent buttons on the Properties panel to insert or remove
blockquote tags. The blockquote tag, <blockquote>, will indent a given paragraph from
both the left and right margins, thereby creating a visual separation similar to those used in
research papers when more than two lines from a source are being cited.
Blockquote buttons
Dreamweaver: Introduction
14
Creating Lists
You can add a new list by choosing Insert > HTML > Text Objects and then selecting the
desired option, Unordered List, Ordered List or List Item. You can also change existing text
using the Properties panel to create unordered <ul> and ordered <ol> lists.
Unordered and ordered list buttons
You can modify an existing list by clicking within any item in the list, then clicking the List Item
button
on the Properties panel. In the List Properties window you can customize
the appearance of your bullets or the numbering of each list item.
3. Copy and paste the text from the Microsoft Word document ctl.doc (in the
docs folder) into sacstate.htm just before the university address.
4. Format the text for The Center for Teaching and Learning, including a
bulleted list of the topics (see sacstate_ex3.htm).
Dreamweaver: Introduction
15
It is important that you prepare your images before inserting them into your Web pages. Use a
graphics editor, like Adobe Photoshop Elements to optimize and resize your images for use
on the Web. Save your files as either GIF or JPG files in the images folder within the site folder.
Inserting an Image
You can insert an image by clicking the insert image button (
) on the Common tab of the
Objects (Insert) panel. Then select the Image option to insert your image.
Dreamweaver: Introduction
16
After inserting an image you can set the image alignment, spacing and hyperlink attributes from
within the Properties panel.
Width and height in pixels
Alternate text
Image alignment
The Center for Teaching and Learning section. Resize the image to make it
smaller than the original.
4. Add a horizontal rule just before each major heading in your document.
5. Save your work and preview your changes in a Web browser.
6. Compare your Web page with the file sacstate_final.htm
Dreamweaver: Introduction
17
RESOURCES
Faculty / Staff Resource Center
Located in ARC 3012. Assistance available on walk-in basis.
FSRC Website - http://www.csus.edu/irt/acr/fsrc/
Getting Help
University Help Desk
(916) 278-7337 or helpdesk@csus.edu
Academic Technology Consultants
http://www.csus.edu/atcs/contact.htm
1on1 Help @ ATCS on Thursdays 1-4 pm in ARC 3005 (no appointment necessary)
Help Desk - Problem Reports & Contact Information
http://www.csus.edu/irt/helpdesk/contact.stm
Training Requests
training@csus.edu
Campus Resources
Training
http://www.csus.edu/training
Training Handouts
http://www.csus.edu/training/handouts
Online Tutorials
http://www.csus.edu/atcs/tools/training/tutorials.stm
Educational Tools
http://www.csus.edu/atcs/tools
Accessibility at Sacramento State
http://www.csus.edu/accessibility
Dreamweaver: Introduction
18