The path of a hyperlink is like a set of driving instructions for the browser. It tells the browser how to get to the page that loads when the visitor clicks the link.
There are three types of paths: absolute, document-relative, and root-relative. Which path you choose depends on which way you want to tell the browser how to get to the linked page. An absolute path tells the browser how to get to the desired page from anywhere on the Web. A document-relative path tells the browser how to get to the desired page from the current Web page, while a root-relative path tells the browser how to get to the desired page from the current Web site. Each type of path has its merits and drawbacks, as this topic shows.
|