Fundamentals 7 min read

Why Does a Web Address Need “://”? Uncovering the Truth Behind URI Slashes

This article explains the role of the “://” in URLs, distinguishes URI from URL, breaks down the URI syntax, and shares Tim Berners‑Lee’s own admission that the double slash was an unnecessary design choice.

Programmer DD
Programmer DD
Programmer DD
Why Does a Web Address Need “://”? Uncovering the Truth Behind URI Slashes

When we browse the web we type URLs that start with http:// or https://, such as http://honeypps.com. What purpose do the "://" or "//" serve?

To understand this we need to discuss URIs. A Uniform Resource Identifier (URI) marks resources on a server and is often seen in a browser’s address bar. Strictly speaking, a URI includes both URLs (Uniform Resource Locators) and URNs (Uniform Resource Names).

Because URLs are so widely used, in everyday conversation URI and URL are often treated as synonymous.

URI format:

URI = scheme:[//authority]path[?query][#fragment]
authority = [userinfo@]host[:port]

The diagram below illustrates the structure:

The first part, scheme , indicates the protocol (e.g., http, https, ftp, file). After the scheme comes the three characters “://”, separating the scheme from the authority.

The authority part specifies the host name and optional port (host:port). Historically it could also include user info (user:passwd@), but this is rarely used today.

When interviewers ask “what’s the use of //?”, they often aim to probe deeper understanding.

In October 2009, Tim Berners‑Lee admitted that the initial double slashes in web addresses were unnecessary. He said he could have designed URLs without them and called the decision a “good idea at the time”.

He later clarified that the “//” has no real function in the URI syntax.

Indeed, the “//” in a URI is essentially superfluous.

Tim Berners‑Lee, the inventor of the World Wide Web, has contributed immensely to global information exchange and chose not to patent “WWW”, making the web freely available to everyone.

References

https://en.wikipedia.org/wiki/Uniform_Resource_Identifier

https://en.wikipedia.org/wiki/Tim_Berners-Lee

http://blog.sina.com.cn/s/blog_3e4d3af301017fnr.html

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

URLweb protocolschemeURITim Berners-Leeauthority
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.