Browsers, servers and the journey of a web page
Lecture notes
Every time you open a web page, two programs talk to each other. On your side is the client, usually a web browser such as Chrome, Firefox, Edge or Safari. On the other side is a server, a computer that is always connected and waits for requests. The browser asks; the server answers. This conversation follows a set of rules called HTTP (HyperText Transfer Protocol).
The Internet and the web are not the same thing
The Internet is the worldwide network of cables, antennas and routers that moves data between computers. The World Wide Web, invented by Tim Berners-Lee in 1989, is one service that uses the Internet: a collection of documents that link to each other. Email, mobile money transfers and video calls also use the Internet without being "the web".
What happens when you type an address
- The URL.
https://www.example.com/courses/htmlhas a protocol (https), a domain name (www.example.com) and a path (/courses/html). - DNS lookup. Computers find each other with numeric IP addresses such as
93.184.216.34. The Domain Name System works like a phone book and converts the name into that number. - The request. The browser sends
GET /courses/htmlto the server. - The response. The server replies with a status code (
200 OK,404 Not Found,500 Server Error…) and the content, usually an HTML document. - Rendering. The browser reads the HTML from top to bottom, requests the CSS, images and JavaScript it mentions, and draws the page.
HTTPS
Plain HTTP travels in clear text: anyone on the same Wi-Fi network could read it. HTTPS adds encryption with TLS. The padlock icon tells you that the connection is encrypted and that the server proved its identity with a certificate. Today every professional website uses HTTPS.
Front end and back end
The front end is what runs in the browser: HTML for structure, CSS for presentation, JavaScript for behaviour. The back end runs on the server: programs written in PHP, Python, Node.js or Java that read databases and build the pages. This track starts with the front end, because every web developer needs it.
Remember: HTML = the content and its meaning, CSS = how it looks, JavaScript = how it behaves.