How the web works
Understanding behind-the-scenes processes
1 / 13
Introduction to web mechanics
01
2 / 13
Web browsing overview
• Browser requests webpage code
– Behind the scenes process
• Code assembled into visible page
– Understanding background
• Not about rendering, covered elsewhere
– Rendering process
3 / 13
Key web components
02
4 / 13
Clients and servers
Devices (clients) request data from servers storing webpages.
Client-server interaction diagram
5 / 13
Other essential parts
• Internet connection: the road
– Data travel path
• HTTP: communication language
– Request and response
• TCP/IP: transport protocols
– How data moves
• Files: website components
– HTML, CSS, JS, assets
• DNS: website address book
– Maps URL to IP
6 / 13
What happens when you browse
03
7 / 13
Step-by-step process
Lookup DNS
Find server IP address
Send HTTP request
Request webpage files
Server responds
Returns status and data
Assemble webpage
Browser builds the page
8 / 13
1
2
3
4
Understanding HTTP status codes
04
9 / 13
Common codes
200 OK
– Request successful
301 Moved Permanently
– URL redirected
404 Not Found
– Resource missing
500 Server Error
– Server issue
10 / 13
Parts of a URL
05
11 / 13
URL components
• Protocol: e.g., HTTPS
– Secure transport
• Domain: website address
– e.g., developer.mozilla.org
• Path: resource location
– e.g., /en-US/
12 / 13
Summary
Behind-the-scenes of web browsing
13 / 13
Loading...
Fullstack Software Engineer