Relative Path Name of a URL


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:


HTML Hyper Links and URLs

⇒⇒HTML Tutorials

2017-07-07, 420👍, 0💬