Skip to content

How the Web Works

Time: ~8 minutes | Difficulty: Beginner

What You'll Learn

  • Client/server model and where your code runs
  • Frontend vs backend responsibilities
  • Our tech stack overview

The Journey of a Web Page

When you type a URL and press Enter:

  1. Browser finds the server — DNS lookup for the IP address
  2. Browser requests the page — HTTP GET request
  3. Server responds — Sends HTML, CSS, JavaScript
  4. Browser renders — Draws the page on screen
┌──────────────┐                      ┌──────────────┐
│              │   1. Request page    │              │
│   Browser    │ ──────────────────▶  │    Server    │
│  (Frontend)  │                      │   (Backend)  │
│              │   2. Send files      │              │
│              │ ◀──────────────────  │              │
└──────────────┘                      └──────────────┘
       │                                     │
       │                                     │
   Where your                           Where data
   UI code runs                         is stored

Frontend vs Backend

AspectFrontendBackend
Where it runsUser's browserRemote server
Who sees the codeAnyone (inspect element)Only developers
What it doesShows UI, handles clicksStores data, runs logic
LanguagesHTML, CSS, JavaScriptMany options
ExamplesButtons, forms, animationsDatabase, authentication

Restaurant Analogy

  • Frontend = The dining room (what customers see)
  • Backend = The kitchen (where food is prepared)
  • Database = The pantry (where ingredients are stored)
  • API = The waiter (carries requests back and forth)

Our Stack

LayerTechnologyRole
FrontendReact (JavaScript)The UI users interact with
BackendFirebaseHandles authentication and database
DatabaseFirestoreStores user data
HostingFirebase HostingServes files to browsers

Firebase combines backend and database into one service — less to set up.

The Three Languages of the Web

HTML — Structure

html
<button>Click me</button>

CSS — Style

css
button { color: blue; padding: 10px; }

JavaScript — Behavior

javascript
button.addEventListener('click', () => {
  alert('You clicked!');
});

React (which we'll use) writes HTML inside JavaScript, making it easier to build interactive UIs.


Continue: Your Development Tools →

Built for learning | Open source on GitHub