What is the Web?
Internet vs the web, clients, servers, and packets
Skills taught: web.internet-vs-web, web.client-server, web.packets
The internet vs the web
Developers often use internet and web interchangeably, but they are different things — and the distinction matters.
- The internet — the physical and logical infrastructure: cables under oceans, routers in data centers, Wi-Fi signals in your home. It connects billions of devices worldwide.
- The web — one service that runs on top of the internet. It uses a protocol called HTTP to transfer HTML pages between computers.
- Other internet services — email (SMTP), file transfer (FTP), video calls (WebRTC), and online gaming all use the same internet infrastructure but are not the web.
Tip: When your email goes down but the web still works, it is because they are separate services sharing the same internet infrastructure.
Clients and servers
Every web interaction involves two roles: a client and a server.
CLIENT (your browser) SERVER (web server)
│ │
│ ── request ──────────────> │ ← stores files/data
│ │ ← runs software
│ <── response ───────────── │
│ │
displays page sends HTML, CSS, JS,
runs JavaScript images, JSON data
- Client — the browser (Chrome, Firefox, Safari). It initiates requests, receives responses, and renders what the user sees.
- Server — a computer that is always running, waiting for requests, and responding with data. It could be a single machine in a closet or thousands of machines in a data center.
- You can be both — a developer running a local server makes their own computer act as both client and server simultaneously.
How data travels: packets
Data on the internet is never sent as one big chunk. It is broken into small units called packets — each about 1,500 bytes (roughly 1,500 characters).
- Your browser prepares an HTTP request ("get me the homepage of example.com")
- The request is broken into packets, each labeled with a source address and destination address
- Packets travel independently through routers — different packets from the same request may take different paths across the world
- The server's network card reassembles the packets in the correct order
- The server sends back a response (the HTML page), also broken into packets
- Your browser reassembles the response and renders the page
Tip: Packets crossing the Atlantic in fiber optic cables travel at about 200,000 km/s — close to the speed of light. A round trip from New York to London takes roughly 70ms.
Frequently Asked Questions
Who invented the web?
Tim Berners-Lee, a British scientist working at CERN, invented the World Wide Web in 1989. He created the first web browser, the first web server, and the first web page. The internet itself (as ARPANET) was invented about 20 years earlier by the US Defense Department.
Is Wi-Fi the internet?
No. Wi-Fi is a wireless networking technology that connects your device to a local router. The router then connects to your internet service provider (ISP) via a physical cable. Wi-Fi gives you access to the local network — the ISP gives you access to the internet.
What is a web server exactly?
A web server is software (like Apache, Nginx, or Node.js) that listens for HTTP requests and sends back responses. The term also refers to the physical machine that runs that software. Cloud platforms like AWS or Vercel provide managed servers so you do not have to manage physical hardware.