HTML and CSS Reference
Congratulations, you learned a lot in this lesson! Now it's time for the workshop. Many
questions about links appear here. The quiz focuses on other items that are important for
you to remember, followed by the quiz answers. In the following exercises, you take the
list of items you created in Lesson 5, “Organizing Information with Lists,” and link them
to other pages.
QMylinks aren't being highlighted in blue or purple at all. They're still just
A Is the filename in a name attribute rather than in an href ? Did you remember to
close the quotation marks around the filename to which you're linking? Both of
these errors can prevent links from showing up as links.
QI put a URL into a link, and it shows up as highlighted in my browser, but
when I click it, the browser says “unable to access page.” Ifitcan'tfind the
page, why did it highlightthetext?
A The browser highlights text within a link tag whether or not the link is valid. In
fact, you don't even need to be online for links to show up as highlighted links,
although you can't get to them. The only way you can tell whether a link is valid is
to select it and try to view the page to which the link points.
As to why the browser couldn't find the page you linked to—make sure that you're
connected to the network and that you entered the URL into the link correctly.
Also verify that you have both opening and closing quotation marks around the
filename, and that those quotation marks are straight quotes. If your browser prints
link destinations in the status bar when you move the mouse cursor over a link,
watch that status bar and see whether the URL that appears is actually the URL
Finally, try opening the URL directly in your browser and see whether that solution
works. If directly opening the link doesn't work either, there might be several rea-
sons why. The following are two common possibilities:
The server is overloaded or is not on the Internet.
Machines go down, as do network connections. If a particular URL doesn't
work for you, perhaps something is wrong with the machine or the network.
Or maybe the site is popular, and too many people are trying to access it
simultaneously. Try again later. If you know the people who run the server,
you can try sending them electronic mail or calling them.