ONLINEPROOFINGSERVICE.COM

wedding photographers - www.onlineproofingservice.com

Menu


containing the link. Linking pages within your Web site Linking from one page to another page in your Web site - known as a relative or


internal link - is easy. The most important thing to remember is to save your pages in the folders that you want to keep them in before you start setting links. Make sure that all your files are in the root folder, as described in the section "Defining a site," earlier in this chapter. Heres how you create an internal link: 1. In Dreamweaver, open the page on which you want to create a link. 2. Select the text or image that you want to serve as the link (meaning the text or image that opens the new page when a user clicks it). Click and drag to highlight text or click once to select an image. Chapter 2: Setting Up a Web Site with Dreamweaver 53 Setting relative versus absolute links If the page you want to link to is within your Web site, you want to create a relative, or internal link, that includes the path that describes how to get from the current page to the linked page. A relative link doesnt need to include the domain name of the server. Heres an example of what the code would look like if I created a relative link to the books page on my own Web site: <A HREF="books/index.html">Janines Books</A> If you link to a page on a different Web site, you want to create an absolute, or external, link. An absolute link does include the full Internet address of the other site. Heres an example of what the code would look like behind an absolute link if you created a link from your site to the books page on my site: <A HREF="http://www.jcwarner.com/b ooks/index.html">Janines Books</A> If all that HREF code stuff looks like Greek to you, dont worry. The following section shows you how Dreamweaver allows you to set links without even knowing what the code means. 3. Click the Browse button to the right of the Link text box in the Properties inspector. The Select File dialog box opens. 4. Click the filename to select the page that you want your image or text to link to, and then click the OK button (Windows) or Choose button (Mac). The link is automatically set and the dialog box closes. If you havent already saved your page, a message box opens, explaining that you can create a relative link only after you save the page. Always save the page youre working on before you set links. Note that to test your links, you have to view your page in a browser, covered in the "Previewing Your Page in a Browser," section later in this chapter. If the page is part of a frameset, use the Target field in the Properties inspector to specify which frame the linked page opens into. (You find out more about setting links in frames in Chapter 7.) Setting links to named anchors within a page If you like to create really long pages, using anchor links to break up navigation within the page is a good idea. A named anchor link, often called a jump link, enables you to set a link to a specific part of a Web page. You can use a