Web development, from zero to shipped

Module 1How the web workslesson 1 of 3

What happens when you open a website

Domains, DNS, servers, HTTP and the browser, in one trip.

Course outline
  1. 1. How the web works

    • What happens when you open a website
    • Your tools: browser, editor, terminal
    • Check: how the web works
  2. 2. HTML: the structure

    • The structure of a page
    • Text, links and images
    • Forms
    • Semantic HTML and accessibility
    • Check: HTML
  3. 3. CSS: the look and the layout

    • Selectors and the cascade
    • The box model
    • Flexbox
    • Grid
    • Responsive design
    • Check: CSS
  4. 4. JavaScript: making it work

    • Values, variables and types
    • Functions
    • Arrays and objects
    • The DOM and events
    • Fetching data with async and await
    • Assignment: split the bill
    • Check: JavaScript
  5. 5. Git and GitHub

    • Commits and branches
    • GitHub and pull requests
    • Check: Git and GitHub
  6. 6. React and Next.js

    • Components and props
    • State and effects
    • Next.js pages and routing
    • Check: React and Next.js
  7. 7. Ship it

    • Deploying to Vercel
    • Domains, HTTPS and speed
    • Capstone: your portfolio site

You are watching a free preview. Enrol to save progress and earn XP.

Enrol for free

The video for this lesson is on its way

Everything it covers is in the notes below, so you can carry on now.

What happens when you open a website

The trip, step by step

  1. You type docerity.com. The browser asks DNS which server that name points to, and gets back an IP address.
  2. It opens a connection to that server and, for an https address, agrees on encryption (TLS).
  3. It sends an HTTP request: GET / plus some headers.
  4. The server answers with a response: a status code (200 OK, 404 Not Found) and a body, usually HTML.
  5. The browser reads the HTML, fetches the CSS, JavaScript and images it points to, and draws the page.

Words to keep

  • Client: the browser asking. Server: the computer answering.
  • Front end: what runs in the browser. Back end: what runs on the server.