Chapter 61. Choosing the Right Path

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.

GEEKSPEAK

The path of a hyperlink 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 Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.