Web Development — Level 1: HTML & CSS Foundations
Free preview

Browsers, servers and the journey of a web page

1 / 4

What is the web?

  • A network of documents linked together and shared over the Internet
  • The Internet is the road network; the web is one service that travels on it
  • Email, video calls and online games are other services on the same Internet
2 / 4

Client and server

  • The client (your browser) asks for a resource
  • The server answers with HTML, CSS, images or data
  • This question–answer exchange follows the HTTP protocol
3 / 4

From address to page

  • 1. You type https://www.ztfuniversity.com
  • 2. DNS translates the name into an IP address
  • 3. The browser sends an HTTP request to that server
  • 4. The server returns an HTML document
  • 5. The browser reads it and downloads CSS, images and scripts
4 / 4

HTTP vs HTTPS

  • HTTPS = HTTP + encryption (TLS)
  • Protects passwords and personal data on public Wi-Fi
  • The padlock in the address bar shows a valid certificate

Never type a password on a page that is not served over HTTPS.

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

  1. The URL. https://www.example.com/courses/html has a protocol (https), a domain name (www.example.com) and a path (/courses/html).
  2. 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.
  3. The request. The browser sends GET /courses/html to the server.
  4. The response. The server replies with a status code (200 OK, 404 Not Found, 500 Server Error…) and the content, usually an HTML document.
  5. 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.
Want to go further?
12 h · Enroll to access every lesson and earn the certificate.
Get Started Free