Professional Documents
Culture Documents
Now that we have planned the website, Dreamweaver provides a way of building the web pages without knowing HTML or CSS.
A. WYSIWYG Theory
Dreamweaver and similar web design applications use a graphical interface, so that we can design a web page visually instead of typing the HTML or CSS code. These types of web design applications are called WYSIWYGs (What You See Is What You Get). As we format and place objects visually, these programs generate the underlying code for us. However, these programs do not write code perfectly. Although you can create simple pages completely through the WYSIWYG interface, you should learn some HTML and CSS if you need to troubleshoot an issue or build complicated pages.
Remote Site
Local Site
Document Window
Workspace Selector
Panel Groups
Tag Selector
Properties Inspector
D. Document Toolbar
The document toolbar changes how we view the web page file. The main commands that we will use are:
File Name
Preview in Browser
Document Title
Code/Split/Design
E. Properties Inspector
The properties inspector lets us view and change the properties of a selected object in the document window. Each type of object has a different set of properties.
F. Panel Groups
The panel groups provide information as well as methods to make changes to the web files and website. To open or close a panel group, click the name of a panel. If you need a panel that is not currently displayed, go to the Window menu and select the panel.
G. Workspaces
Workspaces are different layouts for the Dreamweaver window. You can select a workspace from the Workspace selector button, or you can save a new workspace.
Dreamweaver CS5 Module 1: Website Development 4. In the Choose Root Folder dialog box, navigate to find the folder that will contain your website files. Open that folder and make sure that the correct folder is selected in the lower left message.
5. 6.
3.
C. Naming conventions
When saving a file to be used in a website, such as a HTML page or an image file, name the file using lower case and no spaces. For example, an image file should be named portrait_smith.jpg instead of Portrait Smith.jpg. When naming HTML files, find out from the web server administrator whether the file name extension should be .htm or .html. Different web servers require one or the other ending. Whichever one you use, keep the ending consistent throughout the entire website. Keep in mind that all file names and folder names are public. Use appropriate and descriptive terms.
D. Entering text
1. 2. Click in the document window where you want to enter some text. Type the text. Separate paragraphs with a Return.
Dreamweaver CS5 Module 1: Website Development 3. In the opened document, select and copy the text that you want to put in your HTML page.
4.
In Dreamweaver, click in the HTML document where you want to place the text, and then paste the text.
2. 3.
In the Properties Inspector, click HTML if necessary. For the Format, select Heading 1, Heading 2, etc.
H. Previewing a page
To test whether a web page is well built, you should test it in the most popular browsers. You can test a page directly from Dreamweaver. 1. 2. Save the page. In the Document toolbar, click the Preview/Debug in Browser button.
3.
From the drop-down list, select the browser that you want to use. If the browser you want to use is not in the list, first make sure that you have it installed on your computer. Then, select Edit Browser List from the drop-down list and click the plus button to add another browser application.
Dreamweaver CS5 Module 1: Website Development 5. 6. Go to File Save As. In the Save As dialog box, select a location in the Local Site folder. If you have only one external stylesheet, it can be saved at the top level of the Local Site folder. If you have more than one external stylesheet, usually they are saved in a subfolder named css. In the File name field, enter a file name with the ending .css, such as styles.css. Click Save.
7. 8.
Dreamweaver CS5 Module 1: Website Development 2. 3. Click the CSS Styles panel name to open the panel. At the bottom of the panel, click the Attach Style Sheet button.
4.
5.
In the Select Style Sheet File dialog box, select the external stylesheet. Click OK. In the Attach External Style Sheet dialog box, click OK.
6. 7.
2.
In the New CSS Rules dialog box, change the contextual selector type to Tag. For the Selector Name, type body or select body from the drop-down list. For the Rule Definition, make sure that your external stylesheet is selected. Click OK.
3.
4.
5.
Dreamweaver CS5 Module 1: Website Development 6. In the CSS Rule Definition dialog box, select your options for this rule. Be minimal. Set only the options that you want to change. For Font formatting, set options in the Type category.
7.
Click Apply to preview your changes, or OK to save your changes. To change the formatting of Heading 1, set a CSS rule for the h1 tag. To change the formatting of Heading 2, set a CSS rule for the h2 tag.
F. Modifying a rule
1. Find the rule that you want to change in the CSS Styles panel. If you do not see the rule, you might need to click the All button to view all rules. Double-click the rule name. In the CSS Rule Definition dialog box, make your changes. Click OK.
2. 3. 4.
Dreamweaver CS5 Module 1: Website Development 2. In the New CSS Rules dialog box, change the contextual selector type to Class. For the Selector Name, type a name for the class. The name must start with a period and must contain no spaces. For the Rule Definition, make sure that your external stylesheet is selected. Click OK. In the CSS Rule Definition dialog box, select your options for this rule. Click OK.
3.
4.
5. 6. 7.
2.
Managing Images
Image files must be prepared in a graphics program before you can use them in Dreamweaver. They should be the proper image size and be optimized for the web.
Dreamweaver CS5 Module 1: Website Development 5. In the Image Tag Accessibility Attributes dialog box, enter an Alternate text. An Alt Text is essential for search engine optimization and accessibility for all significant images that you use in your web pages.
6.
Click OK.
5. 6.
In the Image Tag Accessibility Attributes dialog box, enter an appropriate Alternate Text. Click OK.
Dreamweaver CS5 Module 1: Website Development 7. To make the text wrap around the image, select the image.
8.
In the Properties Inspector, from the Align drop-down list, select Left or Right.
Creating Lists
The two main types of lists used in web pages are UL (unordered lists), otherwise known as bulleted lists, and OL (ordered lists), otherwise known as numbered lists.
Dreamweaver CS5 Module 1: Website Development 2. In the Properties Inspector, click the Ordered List button.
B. Inserting a Table
1. 2. 3. Create a new paragraph where you want the data table to appear. Go to Insert Table. In the Table dialog box, enter the following options: Rows: 5 Columns: 2 Table width: 500 pixels Border thickness: 1 pixel Cell padding: 5 Cell spacing: 0 Header: None Click OK.
4.
Dreamweaver CS5 Module 1: Website Development 5. 6. In cells on the right column, copy and paste the name and information for each officer from the officers.doc document. In cells on the left column, insert images for each of the officers.
Dreamweaver CS5 Module 1: Website Development To make changes for one cell, click inside the cell and then select the <td> or <th>tag from the Tag Selector. Then, change the property in the Property Inspector.
To make changes for several cells, drag to select several cells in the table. The cells should become outlined. Then, change the property in the Property Inspector.
Creating Links
You can create a link to an external website, or you can create a link to an internal web page.
3. 4. 5.
In Dreamweaver, select the text that you want to use as your link. In the Property Inspector, paste the URL into the Link field. If you want the external website to open in a separate window, select _blank from the Target field.
2.
In the Property Inspector, click the Browse for File button next to the Link field.
3. 4.
In the Select File dialog box, navigate to the file that you want to link to and select the file. The file must be inside the Local Site folder. Click OK.
main: width=100%, padding=0, margin=0 nav: width=100px, float=left, padding=5, margin=0 content: width=800 px, float=right, padding=5, margin=0
Dreamweaver CS5 Module 1: Website Development 3. In the Insert Div Tag dialog box, click New CSS Rule.
4.
In the New CSS Rule dialog box, select the following options: Selector type: ID #wrapper Selector name: Rule Definition : styles.css Click OK.
5.
6.
In the CSS Rule Definition dialog box, select the following Box category options: Width: 960px Padding; 0 Margin: 0 Click OK.
7.
8.
In the Insert Div Tag dialog box, make sure the ID field displays wrapper, then click OK.
5.
6.
In the CSS Rule Definition dialog box, select the following Background category options: Background color: #FC3
Dreamweaver CS5 Module 1: Website Development 7. Select the following Box category options: Width: 100% Height: 70px Padding; 0 Margin: 0 Click OK.
8.
9. 10.
In the Insert Div Tag dialog box, make sure the ID field displays header, then click OK. To create the structure within the header, we will use a table. Select the placeholder text and delete it. Go to Insert Table. In the Table dialog box, select the following options: Rows: 2 Columns: 2 Table width: 100 percent Border thickness: 0 Cell padding: 0 Cell spacing: 0 Header: None Click OK. Do the following: In the upper left cell, insert the image hdr_logo.gif. In the upper right cell, insert the image hdr_studentclubs.gif. Select both cells in the upper row and change the cell background color to #001F5B. In the lower left cell, type the title Underwater Basket Weaving Club. If there is time, create a CSS class rule called .classtitle to format the title.
11. 12.
13. 14.
2.
3. 4. 5.
6. 7.
8. 9.
5.
Dreamweaver CS5 Module 1: Website Development 6. In the CSS Rule Definition dialog box, select the following Box category options: Width: 100px Float: left Padding; 5 Margin: 0 Click OK. In the Insert Div Tag dialog box, make sure the ID field displays nav, then click OK. Select the placeholder text for id nav, and enter the following text: Home Academics Officers Events Join Us Select each text and type the name of the associated HTML file in the Links field of the Property Inspector. Home = index.htm Academics = academics.htm Officers = officers.htm Events = events.htm Join Us = join.htm
7. 8. 9.
10.
2. 3.
Dreamweaver CS5 Module 1: Website Development 4. In the New CSS Rule dialog box, select the following options: Selector type: ID #content Selector name: Rule Definition : styles.css Click OK. In the CSS Rule Definition dialog box, select the following Box category options: Width: 800px Float: right Padding; 5 Margin: 0 Click OK. In the Insert Div Tag dialog box, make sure the ID field displays content, then click OK.
5. 6.
7. 8.
2. 3. 4.
5. 6.
Dreamweaver CS5 Module 1: Website Development 7. 8. 9. Click OK. In the Insert Div Tag dialog box, make sure the ID field displays content, then click OK. Select the placeholder text and type a copyright statement.
10.