Beginner Topic 1 of 51 Web Development
How the Web Works
Browsers requesting pages from servers over the Internet.
How it works
When you enter a URL, the browser resolves the domain name to an IP address with DNS, opens a TCP connection and a TLS session, sends an HTTP request and receives a response containing HTML. It parses the HTML into the DOM, discovers linked CSS, JavaScript, images and fonts, requests them, builds the render tree, lays out and paints the page, and runs scripts that can fetch more data. Servers, CDNs, caches and proxies sit along the path.
Step-by-step walkthrough
- You type a URL and the browser asks DNS for the server's IP.
- DNS returns the address.
- The browser opens a TCP and TLS connection and sends GET.
- The server replies with HTML.
- The browser parses it, requests CSS, JS and images, then renders the page.
Where it is used
Understanding this chain helps developers debug slow pages, caching issues, redirects, cookies and security headers, and decide where to place code and data between client and server.
Common pitfall
Many problems come from not knowing which step is slow or failing: DNS, connection, server processing, large downloads or render-blocking scripts. Assuming the network is instant leads to poor experiences on mobile. Use the browser network panel to see the waterfall and each request's timings and headers.
Where it fits in the course
How the Web Works is topic 1 of 51 in Web Development, rated Beginner. It is the first topic in this area. The next topic is HTML Basics.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Web Development quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Web Development quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is How the Web Works?
Where do people use How the Web Works?
What is the most common mistake with How the Web Works?
What should I learn before this topic?
How can I practice it?
Is How the Web Works hard to learn?
How long does it take to learn How the Web Works?
Which topics are related to How the Web Works?
What should I study after How the Web Works?
Related topics
- HTML Basics (Web Development)
- HTML Forms (Web Development)
- Semantic HTML (Web Development)
- CSS Basics (Web Development)