The Good Old Link
Without the link, the Web would simply not exist. It's the heart and soul of the Web and, as such, should be treated with kindness!Linking is easy to accomplish, but there are a few important issues to discuss when it comes to linking. Before you get to the code, I want to offer a little insight into two primary types of linking: absolute and relative.Absolute linking is using the exact address to the file you'd like the link to point to. This means including the domain, any subdirectories, and the filename (see Example 2-9).
Example 2-9. An absolute address example
Relative linking means linking to files associated on the same serverfiles that are in the neighborhood, so to speak. You can link a document to another document in the same directory simply by using its filename: springboar175.Or, if it's in a subdirectory, you use the subdirectory: books/springboar175.You can move up from a directory into another: ../books/springboar175.And on some servers, you can use a global identifier to signify "wherever this document is found on this server": /includes/springboar175.
http://www.molly.com/books/springboar175
Example 2-10. Linking to an absolute address
Figure 2-9 displays the results.
<a >Read abou191 and CSS</a>
Figure 2-9. The incredible hyperlink.
Example 2-11. Adding the title attribute and value
[View full width]
As the mouse passes over the link, a ToolTip appears along with the additional details (see Figure 2-10).
<a title="read about the upcoming book
from Addison-Wesley coverin178 and CSS">Read abou191 and CSS</a>