|
|
![[Computer Lab Assignments]](../../images/lab.gif)
|
Exploring
The purpose of this exercise is twofold: first, to introduce students to "simple" HTML document creation; second, to familarize students with the processes involved in "publishing" their page(s) on the World Wide Web [WWW or Web] so others can view them. Before you begin, however, you should read through and understand the University of Hawaii's Interim Policy for Responsible Computing and Network Access or the Student Conduct Code. The University considers the ability to "publish" on ITS web server(s) a "privilege" [not a "right"]. Furthermore, faculty, staff, and students are allowed to create their own personal home pages only so long as they abide by the above policies -- DON'T ABUSE THIS PRIVILEGE!
![]()
What
In general, HTML tags are almost never case sensitive and are usually containers. What is meant by container is that in most cases there is usually a beginning tag and an ending tag. The HTML command would thus be applied to the text in between the beginning and ending tags. A tag begins with an opening bracket (<) followed by the tag ID, any attributes, then ends with a closing bracket (>). Ending tags are exactly the same except there is a slash (/) between the opening bracket and the tag ID [Oh yes, and you don't include attributes in the closing tag].
An example of a container command is the heading command:
There are some "empty" tags, however, that have no enclosed text nor an ending tag. For example, <IMG> indicating image/picture placement, or <HR> which inserts a horizontal rule. In fact, most graphic elements in HTML are handled this way.
White space -- meaning anything that is not a printable character -- is generally ignored in HTML. Leaving a blank line in your document will not display a blank line in your Web browser's view of the document.
An HTML Page should contains at least the following tags:
All contents in the page should be located between the <HTML> and </HTML> tag. Inside the HTML tag you should always have a HEAD tag section and a BODY tag section.
<HEAD>
You should not place any text inside the HEAD section.
Before you can fully appreciate the power [and limitations] of the HTML language and begin creating effective Web documents, you must yield to its one fundamental rule: HTML is designed to structure documents and make their content more accessable over a network for rendering on a variety of display devises, not to format documents for display purposes.
Some Introductory Comments
However, in this class you'll concentrate on the "basics" of Website design using Dreamweaver. To facilitate this, we will spend the next two (2) lab sessions learning how to create HTML pages, format text, insert images and multimedia objects, set links, and work with tables [we'll skip frames, style sheets, and dynamic HTML for now].
KEEP IN MIND, however, that if you get stuck, Dreamweaver comes with an extensive online Help system, featuring tutorials as well as searchable Help files. Likewise, most of the palettes also feature "ScreenTips" that describe icon functions when you allow the cursor to "linger" over them for a couple of seconds!
Starting with the Basics
The first task is to launch Dreamweaver and designate a Local Root folder. With the program open, select Site > New Site... When the Site Definition dialog box opens, make sure you are viewing the "Local Info" category and type "bookstore" into the "Site Name" text box. Next,click on the folder icon button next to the "Local Root Folder:" text box to designate the "bookstore" folder on the "Guest" drive as the Local Root folder for the site you are to build [this will become the "default" folder to which all files for your exercise will be stored]. The remaining category specifications and options accessable from this dialog box can be ignore at this time. Click "OK" to close the dialog box. If a dialog box prompting you to define something or another appears click the "Don't" button and carry-on. Likewise, if a Site Directory window appears, you can close it too [we'll deal with this window later]. What you should be looking at now is the Document window which displays the current document approximately as it will appear in a Web browser.
A blank page typically opens automatically when you launch Dreamweaver. However, you can always load an existing page by selecting File > Open... or create a new blank page by selecting File > New.
Setting Page Properties
Looking at a blank Document window can be a bit daunting, "Now what?" probably comes to mind about now! A good idea of where to start is by setting the Page Properties for the page; begin by Control-clicking to open the Page Properties dialog box, or open it by choosing Modify > Page Properties from the menu bar.
Next, type a title in the text box. This is the title that will appear in the browser's Bookmarks or Favorites list [Netscape & Explorer respectively], so it should be descriptive. Let's call this page "Lastname's Bookstore" [of course, replacing "Lastname's" with your lastname!].
You can also change the background color of the Webpage using this dialog box by clicking on the square next to Background Color. When the color palette appears you can select a color swatch. The best color for this exercise is white, which is also the default. If you wanted to add a background image you would use the Browse button next to Background Image to select a "gif" or "jpg" file to be used as in place of a background color.
Now select the square next to Text Color and choose a dark color for the text. Note that you can choose different colors for Link Color [text that is linked], Visited Links [previously selected by a viewer], and Active Links [the color of the link while it is being selected]. YouÕll learn more about links in the next lesson.
The Property Inspector
After you've finished defining the Page Properties [& saving your document!], click on the page and type "Lastname's Bookstore" [again, replace "Lastname's" with your own!]. If the Property Inspector is not already open, select Window > Properties. The Property inspector displays properties for whatever object is selected in your Document window.
Highlight the words you typed, and -- using the menus in the Property Inspector -- change the format and font. Change the Format to "Heading1" and see how the size and style changes. Change the Font Face from default to "Arial." Change the Font Size to "7" and then back to the default. Click on the Align Center icon [in the group on the right side of the top row] to center the text on the page.
To finish, place the cursor after the headline, hit Return and then type your address [I used the Department of Communication's address]. Highlight the new line, and change the font size to "5." Change the font color by clicking on the gray box below the text size window. Note that color changes made in the Property inspector apply only to the item selected, not the entire page. Leave the Property Inspector window open and visible, but move it out of the way... We'll look at more options later.
The Object Palette & the Launcher
At this point, let's insert a picture between the headline and address. Place the cursor just after the headline and hit Return to open up a space. Click on the top button on the Object Palette to choose an image, and browse to the folder "images" inside the previously defined Local Root folder ["bookstore"]. Click on the jpeg file "books.jpg", and click select then click "OK." The picture should appear just below the headline.
Now, place the cursor next to the image without selecting it, and click on the Align Right icon in the Property Inspector and it will move to the right side of the page. If you click on the Align Left icon it will move to the left. Select the Align Center icon to move it back to the middle of the page.
>
Click on the picture, and note that the Property Inspector automatically changes to show you the image properties including its dimensions and location. [Note: the Align option here is for aligning a picture next to a block of text, not aligning it on the page. Ignore it for now. We'll cover this in the next lesson.] If you don't like your color combination, change your choices in the Page Properties window or the text Property inspector. Remember to save your changes.
The Launcher
Another important tool is the Launcher, which you can access from Window > Launcher if it is not already visible on your desktop. Launcher has buttons for opening and closing various inspectors and palettes, including the HTML Inspector. The others will be discussed later.
The HTML Inspector
Open the HTML Inspector by clicking on the "HTML" button of the Launcher and you see the HTML source code the program has generated for the page you are working on. Source code containing HTML tags lies behind every HTML page, with code elements set off in brackets as in this example, where <H1> is similar to "Heading1" in a word processor.
Elements are instructions that tell the browser how to display the page. Note that each set of instructions requires a beginning and ending tag. The align="CENTER" statement is an example of an attribute; it modifies the element to which it was added. All the user actually sees are the words "Mr. Smiley's Bookstore."
If you are new to HTML, you should spend some time studying the code for the tags you create so you understand them and can edit the code directly when necessary. There are now many good books available to help you learn HTML including the recommended text for this course [also, see the links discussed in the "FYI - Links on Webscaping" section below].
Dreamweaver allows both the document window and the HTML inspector to be open at the same time so changes can be seen in both views; so, if you highlight text in the document window [to affect a change], it is also highlighted in the HTML inspector [and any change is reflected in the HTML code automatically -- or visa versa!]. Note that you can access the HTML inspector in four different ways: from the Launcher, from the "F-10" hot key, from a button on the bottom of the document window, or from the menu bar [Window > HTML].
Previewing in a Web Browser
It's always wise to test your work in a variety of browsers to make sure your Webpages will look good to everyone who sees them. Dreamweaver makes it easy for you to set up preview links to different browsers. ItÕs a preference setting you can access from either the Edit > Preferences menu, or from File > Preview in Browser > Edit Browser List.
First, Choose Edit > Preferences and look over the various Preference topics. You may want to change some of the settings later. Pick Preview in Browser, and click Add if the list is empty.
Next, type the name of a browser [such as Netscape or Internet Explorer] in the Name text box, then click the Browse button to open the Select Browser dialog box and locate the browser you want to configure.
Now, double-click on the program file for the browser, and click "Open," then "OK." The browser has now been added to the list in the Preview in Browser options. You can add other browsers in the same way, and designate one of them as your primary browser.
Finally, you can preview your page using Dreamweaver's "F-12" hotkey to instantly open the page in the primary browser. Compare it to the page as it appears in your Document window and the HTML inspector. Dreamweaver can also test your documents in various browsers "virtually" without a visual preview, and give you a report on any problems or deficiencies. You can access this useful feature from File > Check Target Browsers.
Sharpening Your Skills
NOTE: If you are uploading graphics [e.g., files with gif or jpg extensions] or anything besides a text file for that matter, be sure to select Raw Data next to format.
Likewise, below are a few other sites of general interest to everyone which might be useful in you quest to build the ulitimate web page!
For those of you who are already quite familiar with HTML, I suggest you visit the Project Cool website [developed by the authors of our recommended text!] for hints and tips on making really groovy websites!
[ Syllabus ][ Lab Assignments ][ Downloadable Resources ][ Back to Home ]
|