DREAMWEAVER ANCHOR LINKS
What are links? Links are clickable items that connect to other documents on the web.(web pages, media files such as video, audio, pdf files, etc.) Commonly, underlined text or image buttons are used as links. Links draw the users eye to the navigable sections of the page.
What are anchors? Invisible section bookmarks within a page are called named anchors. They can be used to link to sections of a page. The URL (web address) to an anchor becomes a #name at the end of a document name. i.e. links.html#anchors Try out How to create anchor links to read more about them. (You will jump down the page to that section.)
What can a hyperlink connect to?:
Web pages on the Internet (http://www.rit.edu)
other HTML documents you create (resume.html)
sections within a document (resume.html#education)
images (me.jpg or me.gif)
application files for download (i.e. spreadsheet such budget.xls)
multimedia (sound.wav, movie.mov, realmovie.rm)
Mailto links: Contact e-mail links
Naming Style: Name your text links as short phrases that describe what they connect to not by such names as "click here".
Use short descriptive text. Note that your eyes are drawn to the links.
Good Example 1: RIT Library
Bad Example 2: Click here to go to RIT Library
Keep linkable text short for clear destinations and easy reading
Good Example 3: RIT Library at the RIT in Rochester, NY
Bad Example 4: RIT Library at RIT in Rochester, NY (What will this connect to?)
Do not overuse links in text. It confuses navigation and reduces importance and clarity of each link.
Good Example 5: RIT Library at RIT in Rochester, NY
Bad Example 6: RIT Library at the Rochester Institute of Technology in Rochester, NY
Links within blocks of text should be underlined and allowed to change color when visited. Otherwise they may be hard to find and navigate within a paragraph.
Good Example 7: RIT Library is a link.
Bad Example 8: RIT Library is not underlined and has black as the link color. How will the user know it is linked?
External, Internal and Image Link Illustration
--------------------------------------------------------------------------------
There are 4 kinds of links covered by this tutorial:
1. External links: Clickable underlined text that connects to web sites you did not create.
i.e. From your web page, link to Yahoo search directory at http://www.yahoo.com
Creating External Links:
1a. Type the text for the link in the Document window and highlight it.
1b. In the Properties Inspector type the entire URL (web address) of the site if it is out on the Internet on a different server. (The http:// or ftp:// part must also be included.)
1c. Click in a blank section of document window to see the underlined link.
To re-edit the link, select it in the page and make corrections through the property inspector link box.
Try these links:
RIT at http://www.rit.edu
RIT Library at http://wally.rit.edu
Academic Research Databases: http://wally.rit.edu/electronic/electronic.html
RIT Library Catalog or Electronic Reserves: http://albert.rit.edu/
RIT Directory at http://www.rit.edu/Phone
Yahoo at http://www.yahoo.com
Altavista at: http://www.altavista.com
Computer Based Training at RIT https://www.rit.edu/cbt
Technology Workshops at RIT http://design.rit.edu:591/instruction/default.htm
What if the web address is really long and difficult to type? Copy it from the web browser location bar and paste it into Dreamweaver using short-cut keys.
Be sure that there are no spaces after the end of the link. They will be translated by the web server into characters like %20 and create a broken link.
Open Netscape and go to a web page you want to link.
Highlight the web address in your web browser location box.
On a PC, Hold the Control Key down and type the C key to copy the address.
(Control-C)
On a Mac, Hold the down the Command (Apple) key and type the C key to copy the address (Command-C)
Back in Dreamweaver, Type the name of the site in your Dreamweaver document.
Highlight the site name text.
Click the cursor, in the Link box of Property Inspector.
On the PC, Use the Control-V combination to paste the address.
On the Mac, Use the Command-V combination to paste the address.
2. Internal links: Clickable underlined text that links to content or files on your web site that you create and maintain. i.e. A course web page called index.html contains a table of contents with a link to course syllabus, syllabus.html Both web documents are stored in the same directory/folder. The index.html page might also link to other local files for download such as assignment.xls (an excel file) or videoclip.mov (Quicktime video to view using a plug-in program)
Creating Internal Links:
2a. Create a new document by selecting File>New. Set the Page Properties for it and choose Save As and name it. (i.e. calendar.html) Be sure the document or file you will link to is in the same directory as the document you are working on. It can also be in a sub-directory.
2b. Type the link text in the Document window and highlight it. In the Properties Inspector, click the yellow folder next to link.
2c. Navigate to the location of the file and click on it. Click the Select button
2d. The address that appears in the blank will be the file name (i.e. syllabus.html) or a folder name followed by the file name. (ii.e. course1/syllabus.html)
2e. Click in a blank section of document window to see the underlined text.
3. E-mail Links: Clicking this type of link will launch an e-mail screen that can be filled in and sent to the web author. Note: A mailto link will only work if the browser supports e-mail and is setup to work with a local e-mail system.
On your main web page and optionally at the bottom of every web page it is important to have a way for students or colleagues to contact you.
Remember to check your mail regularly. People will become easily frustrated if they send you e-mail and you do not answer or acknowledge it.
Creating E-mail Links:
3a. In the Document window, type your contact information..(i.e. Contact Prof. Abby Cook at abc1234@rit.edu)
3b. Choose Insert > E-mail Link or click this object in the Objects Palette. Fill in the label for the link and the email address it should go to.
E-mail Link illustration
3c. Click in a blank section of document window to see the underlined mailto link.
Example E-mail Link and Property Inspector view
Note: In the Properties Inspector a mailto: followed by the e-mail address appears. There are no spaces between the colon and the e-mail address. (i.e. mailto:abc1234@rit.edu where abc1234 is replaced by your e-mail address.)
Use e-mail addresses to create a contact list: Creating a mailto link for each of member of group is a good way to enable members to contact each other for group work or study groups.
You can look RIT community members up by name with the RIT Directory system (LDAP) at http://www.rit.edu/Phone
4. Links to Page Sections (Anchors): Clicking these kinds of links will jump the user to a specific section of the page.
Creating anchors and linking to them:
To make links to sections of a web page you will need to use named anchors.
4a. Place your cursor in the section of the page you want to link to. (i.e. a subsection of the page that you have to scroll down to see)
4b. Choose Insert > Named Anchor and type a one word short descriptive name and click OK.(the name of the section) A yellow anchor icon will appear. Click on the icon, if you need to reedit the anchor.
4c. Create a link to the anchor from the top of the same page by selecting text you want to be the hyperlink. Then, in the link box of the property inspector type a # sign followed by the same name as you gave the named anchor.
i.e. If the named anchor was named syllabus, the link would be #syllabus or as in the dialog boxes illustrated, anchor and #anchor respectively.
To link across pages to a section on another page, the link name would be the name of the document it is in followed by the # sign and the anchor name.
i.e. To link to this anchor from another page. links.html#anchor would end the URL web address.
Checking Links: This will open a copy of your web page off the disk so that you can see it in a browser and check the links without publishing it first.
Choose: File > Preview in Browser, select a Web Browser and click through the links.
OR
Choose File > Check Links to check the links in the document you are working on.
OR
Choose Site > Check Links Sitewide if you have set-up a site.
To Re-edit a broken link, select it in the page in Dreamweaver and make corrections through the property inspector link box. Choose File >Save and File > Preview in Browser again.