One of the most powerful features of HTML is the ability to link documents together. In fact, this linking of documents is what creates the interconnected web of knowledge, that we call the Web. The links on a page are called anchors. Anchors have the address of the other resource as an attribute, encoded as a Uniform Resource Locator (URL).

Learning Outcomes for this Chapter

Upon completion of the reading of this chapter and assignments found at the end, a student should be able to:

  • explain the various parts of an URL,
  • differentiate between an absolute URL on a server and a relative path to a local item,
  • create a relative path URL to a local file in a sub-folder,
  • use the id attribute to place a unique identifier on a HTML tag,
  • create an anchor, with text, that will take the user to a page on a remote server, a relative page, or to a specific tag on the current page,
  • create an anchor to a PDF or other non HTML file.