๐ผ ๐จ๐๐ฃ๐๐ก๐ ๐๐ฃ๐ฉ๐๐ง ๐ ๐๐ฎ ๐ฉ๐ง๐๐๐๐๐ง๐จ ๐๐ค๐ฏ๐๐ฃ๐จ ๐ค๐ ๐จ๐ฎ๐จ๐ฉ๐๐ข๐จ โ ๐๐๐ง๐โ๐จ ๐ฌ๐๐๐ฉ ๐๐๐ฅ๐ฅ๐๐ฃ๐จ ๐ฌ๐๐๐ฃ ๐ฎ๐ค๐ช ๐ฉ๐ฎ๐ฅ๐ ๐ ๐๐๐
Source: Dev.to

What happens when you press Enter after typing a URL?
It looks simple, but a lot happens behind the scenes โ all in seconds.
1๏ธโฃ Finding the website (DNS lookup)
Your browser doesnโt understand humanโreadable names like google.com.
It asks the DNS (the internetโs phone book) to translate the name into a numeric address (IP address).
Name โ Number
2๏ธโฃ Saying hello (Server connection)
With the IP address, the browser opens a connection to the websiteโs server, similar to dialing a phone number and checking if the other side is ready to talk.
3๏ธโฃ Making it secure (HTTPS lock)
Before any data is exchanged, the browser and server establish an encrypted channel.
Think of it as putting your message inside a locked envelope so no one else can read it.
4๏ธโฃ Asking for the page (RequestโฏโโฏResponse)
The browser sends a request:
GET / HTTP/1.1
Host: example.com
The server replies with the pageโs resources:
- HTML (text)
- Images
- CSS, JavaScript, etc.
Itโs like ordering food and receiving the meal.
5๏ธโฃ Showing the page (Rendering)
The browser:
- Builds the page structure from the HTML.
- Applies styles and colors from CSS.
- Executes JavaScript.
- Paints the final result on the screen.
Imagine constructing and painting a house from a blueprint.
All of this happens in milliseconds, every time you press Enter.