|

Adding Hyperlinks
In this lesson you will learn how to add hyperlinks and preview your files
in a browser.
- If your Site
Window isn't open, navigate to Window >
Site Files

Though it's much easier to use the Function Key (F8)
FATE (F8)
(You might as well get used to it)
Navigate to your local root folder (if necessary) and double-click on
index.html

- Your document can
(and should) be wider than the one shown below

- Type: Come on
in! and highlight the text

- Click on the Browse
for File icon in the Property Inspector

Note: In Dreamweaver, as in most other programs, there are numerous
ways to insert hyperlinks, images, tables, etc. We will learn alternative
methods for each of these tasks in future lessons.
For now, the file you are browsing for is the only other HTML file you've
created so far: about_this site.html
(Remember, we're going to fix that name soon)
- Warning:
Dreamweaver defaults to the last folder used when browsing for a fileit
may or may not be the folder you want so you'll have to pay attention
to be able to point Dreamweaver to the correct folder
Note: On my computer, the last folder used via the Select
File dialog box was within Mac Lab's Root Folder (as shown
in the image below)
The default folder on your computer will be different
Get used to navigating to the correct folder via these pull-down menusin
this case it would be your Root Folder, right?
The following image is an example of encountering the wrong folder (something
that will happen more often as your site grows more complex)

- Navigate to your
Root Folder and double-click on it
- Find and select
about_this site.html and your Select File dialog box should look
like:

- Double-click on
the icon or click Open with the file highlighted and you page
will look like:

Whew! You just made that link (trust me, it gets much easier)
Note: Do
you see the asterisk (*) in the Title Bar of the document (above)?
(An asterisk in the Title Bar indicates
that there are unsaved changes within the document)
- Save the document
(Command-S) and the asterisk disappears
- Close the document
(Command-W)
- From
the Site Window, open about_this
site.html
- Type the information
as shown below and highlight Home Page so we can make our second
link

- Click on the Browse
for File icon in the Property Inspector

- This time Dreamweaver
takes you directly to the correct folder (the last one used)
- Click on index.html

- Click Open
or press Return (better yet, simply
double-click on the file in the previous step)

- Your document will
look like:

- Click away from
the text to see the link in all its unhighlighted glory

- To see how your
page looks (and works) in a browser you could...
Navigate to File > Preview in Browser >
Internet Explorer

Or you could...
Click on the Preview in Browser icon in the document toolbar
and select Preview in Internet Explorer

Or you could...
But you
won't (because there's a much easier way)
You should have noticed that there is a Function Key associated
with this step
Since you'll be using this feature quite often, I suggest you begin
to use F12 to preview in browser
Here's how your page will look:

- Notice the odd
URL (highlighted in blue)

Dreamweaver sometimes creates temporary files when you preview
You may notice that they may appear in your Site
Window
This one would be titled: TMP64blyedwhc.htm
(yours will be different)
Feel free to ignore them
They are temporary and will disappear when Dreamweaver is finished with
them
Bonus Hint: To preview directly from the Site
Window, select the file (without opening it) and press F12
- Move your cursor
over Home Page and notice how the arrow changes
(The finger indicates that the cursor is over an active hyperlink)

- Click and you'll
be transported to your index.html page

- Here's a movie
to show how it should work:
CLICK ARROW TO PLAY MOVIE
Notice how the link changes color
Blue
is the default hyperlink color
Purple
is the default visited hyperlink color
More on that later
Congratulations! You now know how to add hyperlinks to your HTML files.
<<
Back
|