Web - URL


An Uniform Resource Locator (URL) is a universal identifier for a resource.

Because the resource can be created dynamically, an URL is also logically a request.

It's the string that is understood by a browser when you put it in the address bar.

When the HTTP protocol is used as scheme, it's a identifier for a Web resource.

An URL was originally created to provide a method for finding an item such as a person's street address.

On a format level, the URL is a subset of an URI.

Mr. Berners-Lee, the creator of the Web’s bedrock software standards, would get rid of the double slash “//” after the “http:” in Web addresses. The double slash, though a programming convention at the time, turned out to not be really necessary, Mr. Berners-Lee explained.






See URL - URL Rewrite


See What is URL encoding ? known also as Percent-encoding


The lowest common denominator max URL length among popular web browsers is 2100 1)


An URL shortener is an application that creates a shorter URL.


  • the URL is added to a table with a numerical id
  • with optionally a hash of the URL (to fasten the lookup by hash URL)
  • the numerical id is used in the new shorten version

The numerical id based on the decimal system is generally converted to a greater base (ie above 10 with characters ) making it shorter. The hashid library being the most known example.

How to create an identifier

You can create unique same-length identifier via hashing

Note that the version 3 and 5 of UUID specification have an url namespace to create a url hash.

How to get the url of the actual HTML page with Javascript

See Browser URL


See HTML - Canonical URL

Documentation / Reference

Discover More
(HTTP|HTTPS) - Hypertext Transfer Protocol

Hypertext Transfer Protocol (HTTP) is the transfer protocol to exchange or transfer web resource between nodes (host). The H in HTTP means an hypertext (ie HTML). The protocol was first designed...
A web resource is the data of the web

This articles shows what a web resource is, how to access it and how it's defined. Web resources is also known as web content. The most known web resource is an html page with its CSS and Javascript but...
Browser - History API

The history api is a browser api that permits to modify the URL history (ie the URL in the browser bar) It's heavily used in a single page application to improve SEO in order to send a signal to the...
CSS - Image

The image type in CSS is given: a url that specifies: binary / raster image formats (such as gif, jpeg, etc) dedicated markup formats (such as SVG) or a gradient function (such as linear-gradient...
Data System Architecture
Data - Cache

In computer science, a data cache is a component that aims to: improve performance reduce load on the server. The cache will: store transparently a request response and use it to for later...
HTML - A element (anchor)

The a (or anchor) is a html element that represents a hyperlink. It is the cornerstone: of every navigation scheme on the web. and of the importance of a page on the internet (pagerank) the...
HTML - Canonical URL

URL A canonical url is a URL that has a canonical value identifier for a web page meaning that the value should be unique on the internet scope. This is the URL that people will see in: the search...
HTML - Document

An HTML document is a well-formed HTML string (ie that contains the html root element). web page The HTML textual representation can be stored: in a string in a file or in the body of an HTTP...
HTML - How to render SVG in HTML

How to render svg markup in a HTML page. You can render SVG markup via: object, embed, iframe, img, CSS background-image and svg inclusion. HTML A svgSVG element represents the root...

Share this page:
Follow us:
Task Runner