How the Web Works
admin@gmail.com • 3/18/2026, 1:36:49 AM
Introduction
Before writing any code, it helps to understand what actually happens when you visit a website.
How it works
When you type a URL into your browser:
Your browser asks a DNS server for the website’s IP address
It sends an HTTP request to that server
The server responds with files (HTML, CSS, JS)
Your browser renders the page
Key concepts
HTTP vs HTTPS: secure vs non-secure
Browser: renders websites
Server: stores and sends files
Analogy
Think of it like ordering food:
You = client
Waiter = internet
Kitchen = server
Recap
The web is just communication between clients and servers.
