URLs vary depending on the location of the document to which the user will link. Basically,
URLs fall into two categories
- Absolute URL: It specifies the exact location of a file/directory on the Internet. Absolute URL identifies that each URL is unique, which means that if two URLs are identical then they point to the same file.
- Relative URL: It points to a file/directory in relation to the present file/directory. It locates a resource using an absolute URL as a starting point. It typically consists of the path and optionally, the resource but no scheme or no server.