Web Development

  Homes arrow Web Development arrow Dreamweaver - Working with Images
 Webmaster Tools
 
Base64 Encoding 
Browser Settings 
CSS Coder 
CSS Navigation Menu 
Datetime Converter 
DHTML Tooltip 
Dig Utility 
DNS Utility 
Dropdown Menu 
Fetch Content 
Fetch Header 
Floating Layer 
htaccess Generator 
HTML to PHP 
HTML Encoder 
HTML Entities 
IP Convert 
Meta Tags 
Password Encryption
 
Password Strength
 
Pattern Extractor 
Ping Utility 
Pop-Up Window 
Regex Extractor 
Regex Match 
Scrollbar Color 
Source Viewer 
Syntax Highlighting 
URL Encoding 
Web Safe Colors 
Forums Sitemap 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB DEVELOPMENT

Dreamweaver - Working with Images
By: Developer Shed
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating:  stars stars stars stars stars / 0
    2004-01-30

    Table of Contents:

    Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     

    SEARCH DEV MECHANIC

    TOOLS YOU CAN USE

    advertisement

    Dreamweaver - Working with Links
    by GTS Learning

    Objectives of this Tutorial

    Generally: To create links to connect pages in a site and link to other sites and email.

    Specifically: On completion of this section, you will be able to:
    • Create links to other pages within the same website
    • Create anchors that link to specific areas of a page
    • Create external links

    Creating Links

    Hyperlinks are an integral part of all web pages. Links are used to add multimedia files, such as images and sound, to a web page, to connect different parts of a large page and perhaps most importantly, to link different pages together.

    A link can either be presented as text (hypertext) or as a graphic. A link points to the location of another file (or part of a file). For a link to work, you must supply the path to the file (or place in a file) the link is to. The path can be absolute, document-relative or root-relative.

    Tip: You do not need to type in path names when creating links in Dreamweaver. You can simply browse to the file you want. However, you should be aware how links work. The Appendix contains a brief guide to the makeup of URLs.

    Also, a link to an HTML document can specify a named location (or anchor) in the document to jump to. You can enter links to named location(s) in the current document too.

    Most links are to other HTML documents. When the user clicks the link, the new page is (usually) opened in the current browser window, replacing the previous page.

    Any images to display on a web page are put there by means of a link to the graphics file. A link can connect to any type of file. Some files, such as JPEG, GIF or PNG graphics or PDF documents, will open in the browser window. Others will prompt the user to open the file in a suitable application or to save it.

    A link can also connect to an email address. In this case, a new mail message is opened with the correct address.

    To create links between documents by browsing for a file

    • In the document select the text or image that you want to turn into a link
    • Display the Property Inspector
    • Click the Browse for File folder icon to the right of the Link box


    Browse for File button

    The Select File dialogue box is displayed.


    Select File dialogue box

    • Select the document you want to link to

    Note: The path to the document is displayed in the URL: box. By default this is a Document-relative link, but you can change it to a Root-relative link by adjusting the option in the Relative To: box.

    • Click Select

    Continued...

    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


    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.


    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.


    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 name@host_name - for example, jane@courseware.co.uk). 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.


    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.


    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:jane_cooper@lineone.net


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More Web Development Articles
    More By Developer Shed

       

    WEB DEVELOPMENT ARTICLES

    - On Page SEO for New Domains
    - Improve Your Site`s Speed
    - Safari Books Online Review
    - Creating an Estore From the Ground Up
    - Most Common SEO Mistakes Developers Make
    - Making the Most of Your Titles and Meta Desc...
    - Five Ways Using Flash Can Damage Your Site
    - A Web Designer`s Guide to Colors
    - Use Webstarts to Create a Free Site
    - More Than Just Looks. How Your Web Design C...
    - How to Design Content Pages
    - Mint Review
    - Make Your WordPress Website Look Professional
    - How to Create a Mobile Web Site
    - Meta Tags: Still Useful?

    Developer Shed Affiliates

     



    © 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap