Why Do Websites Start With "www"? The Accidental History of Three Letters

You have typed it thousands of times, and your browser probably hides it now. But "www" was never required, and the first website ever made didn't use it. Here is how three letters ended up in front of nearly every web address.

Short answer

"www" is just a name for a computer, called a subdomain, and it was never required. In the early 1990s, organisations named their servers after the job they did: mail.example.com for email, ftp.example.com for file downloads, so the machine for the new World Wide Web became www.example.com. The habit stuck in people's heads and in advertising. Today a website works with or without it, and most sites send one version to the other. Some large sites keep www for technical reasons to do with DNS and cookies.

In this article 6 sections
  1. The first website had no www
  2. Naming machines after their jobs
  3. How "www" got stuck in our heads
  4. Is www needed today?
  5. Why some big sites still keep it
  6. So, www or not?
Illustration of a browser address bar showing www.example.com with the www crossed out
ByteExplained illustration

The first website had no www

Tim Berners-Lee invented the World Wide Web at CERN, the physics laboratory near Geneva, in 1989. By Christmas 1990 he had the first web server and browser running on a NeXT computer in his office.

That computer's name on the network was nxoc01.cern.ch, and it was soon given a friendlier alias: info.cern.ch. The first web page lived at info.cern.ch/hypertext/WWW/TheProject.html. There were three Ws in the address, but in the folder name, not at the front. CERN restored that page in 2013, and you can still open it today.

So where did the prefix come from?

Naming machines after their jobs

Before the web, the internet was already full of services, each usually running on its own computer. Network administrators named those computers after what they did:

  • mail.example.com handled email
  • ftp.example.com offered files to download
  • news.example.com ran Usenet discussion groups

When organisations added a server for the new World Wide Web, they followed the same rule and called it www. Nothing in the web's design required it. It was simply the obvious label, the same way you might put a sign saying "Reception" on one door and "Deliveries" on another.

The web took off after 1993, when CERN made its software free to use and the Mosaic browser made the web easy to explore. Businesses rushed online, and almost all of them chose www.

How "www" got stuck in our heads

In the late 1990s and 2000s, "www" became the badge of being online. It appeared on business cards, TV adverts, shop windows and the sides of buses, often in full: http://www.something.com. People learned it as part of the address, not as an optional label.

Browsers soon stopped needing the http:// part, and users quietly dropped it. The www survived much longer, because people believed a site might not work without it, and on some badly set-up servers that was true.

Is www needed today?

No. A domain can show a website directly, so byteexplained.com works on its own. What matters is that a site picks one main address and redirects the other to it. Type www.byteexplained.com and you are sent to byteexplained.com, so search engines see one site instead of two copies.

Browsers have also moved on. In 2018, Chrome 69 started hiding "www" in the address bar, which caused such a backlash that Google briefly reversed it. In 2019, Chrome 76 hid both "www" and "https://" for good. Safari hides most of the address too. Click into the address bar and the full address comes back.

Why some big sites still keep it

If www isn't needed, why do sites like google.com still send you to www.google.com? There are two technical reasons, and neither matters much for a small website.

www or no www, the trade-offs
With wwwWithout www
DNSEasy to point at a CDN or cloud hostNeeds a workaround for CNAME
CookiesStay on the main siteCan reach every subdomain
Length4 extra charactersShorter
Works?YesYes

DNS: a CNAME is a DNS record that says "this name is really that other name". It is how many sites hand their traffic to a cloud host or content delivery network. The rules of DNS don't allow a CNAME on a bare domain like example.com, because that name also needs other records, such as those for email. A subdomain like www doesn't have that problem. Services such as Cloudflare now offer workarounds, which is one reason bare domains have become much more common.

Cookies: a cookie set for example.com can be sent along with requests to every subdomain, such as images.example.com. For very large sites, keeping the main site on www keeps those cookies contained, which is slightly faster and safer.

So, www or not?

For most people it doesn't matter, as long as both addresses lead to the same place. Visitors can type either, search engines see one site, and the browser will probably hide the difference anyway.

The three letters that once meant "this is on the internet" are now mostly a habit, and a reminder of a time when one computer at CERN called info.cern.ch was the entire World Wide Web.

ByteExplained is written with help from Claude, Anthropic's AI model, and checked against the listed sources.

Sources and further reading

  1. A short history of the Web — CERN
  2. Where the web was born — CERN
  3. Web history — CERN Web@30
  4. A little history of the World Wide Web — W3C
  5. Facts about the Web's creation — Scientific American
  6. What happened to WWW? — Hackaday
  7. Why don't you have to put www in URLs? — Mental Floss
  8. Official: Google Chrome 69 kills off the World Wide Web (in URLs) — The Register
  9. Chrome 76: no more https or www in address bar — gHacks
  10. Introducing CNAME flattening — Cloudflare
  11. This weekend's DDoS attack and what's in a CNAME — Netlify

Was this article helpful?

Comments

No comments yet. Questions and tips from readers are welcome.