DREAMWEAVER – WORKING WITH LINKS (Page 2)

To link to a document using Point-to-File

Point-to-File lets you create a link to an open document or to a document in the Site window. You can also use it to create a link to an anchor (see below) in the same document.

  • If necessary, arrange the Document and Site windows so that the link and destination file are displayed
  • In the document, select the text or image that you want to turn into a link
  • In the Property Inspector click-and-drag the Point-to-File icon located to the right of the Link field and point to either another open document, or an anchor in an open document, or a document in the Site window

unnamed-file-1019 DREAMWEAVER - WORKING WITH LINKS
       (Page 2)
Point to File icon

The Link field is updated with the new link.

Note: When you point to a file in either another open document or the site window, the open document or site window will move to the front while you are making your selection.

Using Anchors

An anchor is a place in the document marked with a name. Hyperlinks can point to an anchor, so that when the user clicks the link, the correct place in the document is shown. For example, you might create an anchor for the main headings in a long web page so that the user can move to the section they are interested in.

To create an anchor

  • Position the insertion point in the document where you want the anchor to be placed
  • From the Insert menu, select Invisible Tags then Named Anchor (SpeedKey: Ctrl + Alt + A)

The Insert Named Anchor box is displayed.

unnamed-file-1021 DREAMWEAVER - WORKING WITH LINKS
       (Page 2)
Insert Named Anchor box

  • In the Anchor Name: box, type in a label for the anchor (this cannot include spaces and should be kept quite short)
  • Click OK

The anchor appears at the insertion point in the document.

unnamed-file-1022 DREAMWEAVER - WORKING WITH LINKS
       (Page 2)
Anchor

To create the link to a named anchor

  • In the document, select the text or image that you want to create the link from
  • On the Property Inspector, drag-and-drop the Point-To-File icon over the anchor icon

OR

  • On the Property Inspector, in the Link box, type a hash sign (#) followed by the name of the anchor, for example #Home

Note: If the anchor is in another document, type the path to the file, followed by the hash sign (#) and anchor name, for example, Home.htm#Home.

Note: Anchor names are case sensitive.

External Links

External links point to a document outside the current site. The most common use of external links is to link to other websites and to email addresses.

To create a link to a page on the world wide web

  • Type the page’s URL into the Link box (for example, http://www.courseware.co.uk/)

The URL must include the service type (http:// – this indicates the document is a web page). You can enter a domain name only or specify a page (for example, http://www.courseware.co.uk/ecdl.htm).

Tip: You can find the URL of a page by browsing to the site using your web browser then copying and pasting the text in the address bar to the Link box.

To create a link to an e-mail address

An email link points to an internet email address (these are of the form [email protected]_name – for example, [email protected]). When the user follows the link, a new mail message is opened with the address filled in already.

  • Select the text or the image that you want displayed as the email link
  • From the Insert menu, select E-Mail Link…

The Insert Email Link box is displayed.

unnamed-file-1024 DREAMWEAVER - WORKING WITH LINKS
       (Page 2)
Insert Email Link box

  • The Text: box will show the text you selected – you can modify it here if necessary
  • In the E-Mail: box, type the email address that the message should be addressed to
  • Click OK

The e-mail link is displayed in the document.

unnamed-file-1024 DREAMWEAVER - WORKING WITH LINKS
       (Page 2)
E-mail link

To create an email link using the Property Inspector

  • Select the text or the image to display as the link
  • On the Property Inspector, in the Link box, type mailto: followed by the email address

Note: Do not type any spaces between the colon and the e-mail address. For example, type mailto:[email protected]