How the web works
What actually happens when you type an address and press Enter.
Every website you visit is a conversation between two computers.
Clients and servers
Your browser (Chrome, Firefox, Safari) is the client. It asks for things. A server is a computer somewhere in the world that stores a website’s files and sends them back when asked.
What happens when you visit a site
- You type
nodolatino.devinto the address bar. - Your computer asks the DNS (Domain Name System) for that site’s address. DNS works like a phone’s contact list: it turns a name into a number called an IP address, such as
93.184.216.34. - Your browser sends a request to that address using HTTP, the language browsers and servers speak.
- The server sends back a response: usually HTML, CSS and JavaScript files.
- Your browser reads those files and draws the page.
The three languages of the web
| Language | What it does | Think of it as |
|---|---|---|
| HTML | Structure and content | The walls and rooms of a house |
| CSS | Style and layout | Paint, furniture and decoration |
| JavaScript | Behavior and interaction | The electricity and plumbing |
Try it
Open any website, right-click anywhere and choose Inspect. You are now looking at the developer tools. The Elements tab shows the HTML of the page. Click around, nothing you change here is permanent.
Vocabulary for work: client, server, request, response, DNS, HTTP. You will hear these words in every tech job interview.