URL - Uniform Resource Locator
These substrings are separated by special characters as follows: protocol :// host / location URL Protocol
The 'protocol' substring defines a network protocol to be used to access a resource. These strings are short names followed by the three characters '://' (a simple naming convention to denote a protocol definition). Typical URL protocols include http://, ftp://, and mailto://.
URL HostThe 'host' substring identifies a computer or other network device. Hosts come from standard Internet databases such as DNS and can be names or IP addresses. For example, xip.ro is the host for this Web page.
URL LocationThe 'location' substring contains a path to one specific network resource on the host. Resources are normally located in a host directory or folder. For example, /networking-basics/a-z-networking-terms/url-uniform-resource-locator.html is the location of this Web page including two subdirectories and the file name.
Absolute vs. Relative URLsFull URLs featuring all three substrings are called absolute URLs. In some cases such as within Web pages, URLs can contain only the one location element. These are called relative URLs. Relative URLs are used for efficiency by Web servers and a few other programs when they already know the correct URL protocol and host. |
