Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index

XHTML Tutorial - Relative Path Name of a URL

By: FYIcenter.com

(Continued from previous topic...)

What Is a Relative Path Name?

A relative path name is a path name that starts without the leading slash "/". If a relative path name is used in a URL, the relative path name will be replaced with the current document path name appended with the specified relative path name.

If "." or ".." is used in path names, it will be interpreted as "current directory" or "parent directory" respectively. For example, if the following URLs are used in this document you are viewing right now:


your browser will borrow the protocol name, the host name, the port number, and the path name from the URL of this document, and produce the following URLs:


(Continued on next topic...)

  1. What Are Hyper Links?
  2. What Is an Anchor "a" Tag/Element?
  3. How To Define a Hyper Link?
  4. How To Define a Bookmark?
  5. What Is a URL?
  6. What Is the Structure of a URL?
  7. What Happens If Protocol or Port Number Is Missing in a URL?
  8. What Happens If a URL Starts with Path or File name?
  9. What Is a Relative Path Name?
  10. What Happens If File Name is Missing in a URL?
  11. How To Build Hyper Link Indexes within the Same Document?
  12. What Happens If a Hyper Link Points to an Image?
  13. What Happens If a Hyper Link Points to a Music File?
  14. What Happens If a Hyper Link Points to a PDF File?
  15. What Happens If a Hyper Link Points to a ZIP File?
  16. How To Create A Link to Open a Document in a New Window?

Selected Developer Jobs: