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.
| With www | Without www | |
|---|---|---|
| DNS | Easy to point at a CDN or cloud host | Needs a workaround for CNAME |
| Cookies | Stay on the main site | Can reach every subdomain |
| Length | 4 extra characters | Shorter |
| Works? | Yes | Yes |
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.
