|
|
Why don't my links work?1. If your link is to a web page that is not on your site, make sure that you have the entire address. This means you must include the http:// at the beginning of the address. This stands for "hypertext transfer protocol" and is necessary because there are other protocols, such as the "file transfer protocol" that you may use to transfer files. 2. Make sure that you have typed the correct address exactly. Some servers are case-sensitive. That means it matters whether names are capitalized or not. A server may distinguish between www.mysite.org and www.MySite.org, for example. To be sure you have the exact address, go to the site that is the target of your link and highlight its address. Use "Edit>copy" to copy the highlighted address and then use "Edit>paste" to paste this exact address into you code. 3. Computers insist on exact information. Is the file name extension ".htm" or ".html"? If that one letter is missing or added by accident, the link will not work. 4. If you have a relative link inside your own site that does not work, make sure that the file is in the same directory or folder as the page you are linking from. If it is in a different folder you will need to type the name of the other folder and then the file name. For example, imagine that this web page is kept in a folder on the server named "class." Imagine the page with the quiz for topic 5 has a name "05quiz.htm" and is kept in a folder on the server named "quizes." When I try to link to the quiz from this page the code would need to read: <a href="quizes/05quiz.htm"> To the left of the slash is the name of the folder and to the right is the name of the file. If that does not work, you may need to direct the computer to go up one directory to find the folder. That means typing: <a href="../quizes/05quiz.htm"> The ../ tells the computer to go up a logical level to find the folder named "quizes" and then choose the file named "05quiz.htm" for your link. 5. Do you have quotation marks around the file name? Do you have the ending quotation mark? Remember that if you do not use quotation marks for elements and attributes, you can only use letters from the alphabet and regular numbers. Symbols like the slash / or period . will not work unless they are enclosed inside quotation marks. Always use the quotation marks, and make sure you have one before and at the end of the file name.
|
|
|
Instructor: dwang@think-ink.net
Copyright by dwang, 1999, 2000. All rights reserved.