Q&A
-
When I create links, some of them are blue and some of them are purple. Why? How come most of the links I see on the Internet aren't blue and purple?
-
A link appears blue to anyone who hasn't recently visited the page to which it points. After you visit a page, any links to it turn purple. These colors can be (and often are) changed to match any color scheme a Web page author wants, so many links you see on the Web won't be blue and purple. (Hour 10, "Custom Backgrounds and Colors," tells how to change the colors of text and links on your Web pages.)
-
What happens if I link to a page on the Internet and then the person who owns that page deletes or moves it?
-
That depends on how that person has set up his server computer. Usually, people see a message saying page not found or something to that effect when they click the link. They can still click the Back button to return to your page.
-
One of my links works fine on my computer, but when I put the pages on the Internet it doesn't work anymore. What's up?
-
The most likely culprits are
-
Capitalization problems. On Windows computers, linking to a file named Freddy.htm with <a href="freddy.htm"> will work. On most Web servers (which are usually UNIX machines), the link must be <a href="freddy.htm"> (or you must change the name of the file to freddy.htm). To make matters worse, some text editors and file transfer programs actually change the capitalization without telling you!
-
Spaces in filenames. Most Web servers don't allow filenames with spaces. For example, you should never name a Web page my page.htm. Instead, call it mypage.htm or MyPage.htm.
The next hour explains how to upload files to a Web site and how to rename files once they're online so that you can make sure the spelling and capitalization are perfect.
-
-
Is href the only attribute that can be used with the anchor tag?
-
No, others are available. However, the href tag is the only one that is required.