What Is Url?

URL means uniform resource locator

what is URL

With Hypertext and HTTPURL is one of the key concepts of the Web. It is the mechanism used by browsers to retrieve any published resource on the web.

URL stands for Uniform Resource Locator. A URL is nothing more than the address of a given unique resource on the Web. In theory, each valid URL points to a unique resource. Such resources can be an HTML page, a CSS document, an image, etc. In practice, there are some exceptions, the most common being a URL pointing to a resource that no longer exists or that has moved. As the resource represented by the URL and the URL itself are handled by the Web server, it is up to the owner of the web server to carefully manage that resource and its associated URL.

Basics: anatomy of url

Here are some examples of URLs:

https://developer.mozilla.org
https://developer.mozilla.org/en-US/docs/Learn/
https://developer.mozilla.org/en-US/search?q=URL

Any of those URLs can be typed into your browser’s address bar to tell it to load the associated page (resource).

A URL is composed of different parts, some mandatory and others optional. The most important parts are highlighted on the URL below (details are provided in the following sections):

History

It all began with the search for a method that would allow the sharing of information on computers. Three events highlight the roadmap towards the introduction of URLs:

  • In 1969, the Advanced Research Projects Agency Network (ARPANET) sent the first node-to-node transmission from UCLA to the Stanford Research Institute, using the ARPANET 1822 Protocol. Consisting of the Physical, Data, and Network layers, a Transport layer was introduced in 1970 with the introduction of the Network Control Protocol (NCP).
  • In 1983, ARPANET switched from NCP to the Transmission Control Protocol/Internet Protocol (TCP/IP).
  • In 1989, Tim Berners-Lee created the World Wide Web (WWW), introducing the markup language, resource identifiers, and protocols for retrieving resources.

When Berners-Lee introduced the WWW to the world, data transmissions were stabilizing. By the early 1990s, the internet had advanced enough to serve up files, mail, and data, using protocols such as Gopher, FTP, and Telnet.

The time was ripe, therefore, in 1992, for Berners-Lee to define the URL as a tool to link to the location of any internet resource a user may require. Although his focus on URLs was for the web and its HTTP protocol, his vision incorporated most internet protocols.

FUNCTIONS OF URL

The URL protocol specifies how information from the link is transferred. The protocol used for web resources is HyperText Transfer Protocol (HTTP). Other protocols compatible with most web browsers include HTTPS, FTPtelnet, newsgroups, and Gopher. The protocol is followed by a colon, two slashes, and then the domain name. The domain name is the computer on which the resource is located. Links to particular files or subdirectories may be further specified after the domain name. Directory names are separated by single forward slashes.

Components of a URL

The four main components of URLs are the protocol, domain, path, and query.

Let us have a closer look at the different URL components, using the following example:

https://www.example.com/category-A/subcategory-A1/model-123.html

Protocol

The protocol or scheme of a URL indicates the method that will be used for transmitting or exchanging data. The most familiar scheme is the Hypertext Transfer Protocol (HTTP) or Hypertex transfer protocol secure (HTTPS) for the transmission of HTML files. FTP (for files) and Mailto (for mails) are examples of other types of schemes.

In the example URL above, https:// is the URL’s secure protocol.

Domain

The domain or hostname of a URL is a user-friendly expression of the Internet Protocol (IP) address of a website. It points to the location of the website’s host server.

In the example above, the domain is www.example.com.

Path

The path that follows the domain name inside a URL points to a specific file or other resource location. It can also include a query string.

In our example URL, /category-A/subcategory-A1/model-123.html shows the path of the URL, which in this example, ends in a product page.

Query

The query string, also known as a fragment identifier, is frequently used for internal searches and is commonly preceded by a question mark (?).

For example:

https://www.example.com/category-A/subcategory-A1?searchTerm=Model+123

This URL is the result of a user entering the search term “Model 123” on the subcategory A1 page. The landing page in this example is either the product page of model 123 or a list of search results that contain the term “Model 123”.

Characters allowed in URLs

The characters that are allowed in URLs are specified by the World Wide Web Consortium. The specifications include lists of unreserved and reserved characters.

  • Unreserved characters: These are not reserved and can be used freely in URIs and URLS. They include all upper case and lower-case letters, all decimal numbers, hyphens and underscores, tildes, and periods.
  • Reserved characters: These serve special purposes within a URI/URL. They include / ; : ? @ & , + $ =.

Reserved characters are used for delimiting or other special purposes inside a URL and cannot be used in any other way within a URL unless they are URL-encoded. This means that in order to display a “?” as a question mark or a “+” as a plus sign inside a URL string, these characters will require encoding.

Examples of the usage of reserved characters inside a URL

In our example URL:

https://www.example.com/category-A/subcategory-A1?searchTerm=Model+123
  • Forward slash: “/” is used to delineate parts of a URL, for example, by separating the file path from the domain.
  • Question mark: “?” is used at the start of a query.
  • Equal sign: “=” is used between a parameter name and the value given for that name.

Differences between URL and domain

Although a domain can be a URL, as in the case of a homepage, most URLs contain much more information than just the domain name. URLs contain resource addresses, file paths, and queries.

The domain name is a user-friendly method of listing an IP Address making it easy to remember.

Components of a domain
A domain is divided into three different hierarchical levels, which start on the right side of the domain component of a URL.

  • Top-level domain: domain name extension, such as .com, .net, .biz, .de.
  • Mid-level domain: the component with the most flexibility. It can be an organization’s name or a phrase. It is also known as the second-level domain.
  • Prefix: the WWW prefix of the mid-level domain. It is not required, but it initially distinguished web URLs from other URL schemes.

Absolute vs relative URLs

If a website contains a number of pages branching off from its home or category pages, links to other web pages can use relative URLs if the resources are on the same server as the referencing page. Relative URLs are less cumbersome than absolute URLs, but the webmaster must be very careful to avoid broken links if resources are moved frequently. It may be better to err on the side of caution with the consistent use of absolute URLs.

On the web page https://www.example.com/category-A/, a link points to a product in a subcategory:

<a href="subcategory-A1/model-123.html">Model-123.html</a>.

This relative URL will send the user to the web page describing the product “Model 123” if all the product pages in subcategory-A1 are on the same server as the Category A page.

IMPORTANCE OF URL

URL as an instrumental part of your webpage. Most Content Management systems, like WordPress, provide you with a structure for your URL out-of-the-box. But a little attention and direction can really give your content a step forward in performing online. You may not realize how many places the URL is being used.

  • URLs are often the text used to link to a webpage
  • URLs are commonly printed on marketing collateral such as business cards, flyers, billboards, and emails
  • URLs are an influential factor in how your webpage may rank in an Internet search
  • URLs are often spoken by your sales and/or support staff

Drop your comment

0Shares

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *