ONLINEPROOFINGSERVICE.COM

event photography - www.onlineproofingservice.com

Menu


Fixing broken links Broken links are one of the most problematic errors a Web designer can make. After you identify a broken link in


your site, you should fix it immediately. Nothing turns off visitors faster than clicking a link and getting a File Not Found error page (also known as a 404 error because thats the official Web error code associated with the message viewers usually see if they click a broken link). Fortunately, Dreamweaver makes fixing broken links simple by providing quick access to files with broken links and automating the process of fixing multiple links to the same file. Chapter 3: Planning and Maintaining a Web Site 83 After using the Link Checker feature described in the preceding section to identify broken links, follow these steps to use the Results panel to fix them: 1. With the Results panel open at the bottom of the page, double-click a filename that Dreamweaver identified as a broken link. The page and its corresponding Properties inspector opens. The Results panel remains visible. 2. Select the broken link or image on the open page. In Figure 3-4, a broken image was selected and is being fixed by using the Properties inspector to find the correct image name. 3. In the Properties inspector, click the folder icon to the right of the Src text box to identify the correct image file. The Select Image Source dialog box appears. You can type the correct filename and path in the text box or browse to find the image. You fix links to pages just as you fix links to images, except you type the name of the correct file into the Link text box or click the folder icon next to it to find the file in your site folder. 4. Click the filename and the Select button; then click OK. The link automatically changes to reflect the new filename and location. If you replace an image, the image file reappears on the page. Figure 3-3: The results of the Check Links Sitewide feature display as a report at the bottom of the work area and can be organized by broken links, external links, and orphans (or unused files). 84 Part II: Looking Like a Million (Even on a Budget) If the link that you correct appears in multiple pages, Dreamweaver prompts you with a dialog box asking whether you want to fix the remaining broken link references to the file. Click the Yes button to automatically correct all other references. Click the No button to leave other files unchanged. Testing Your Work with the Site Reporting Feature Before you put your site online for the world to see, checking your work using the Dreamweaver Site Reporting feature is a good idea. You can create a variety