LESSON 01 / 04

How the Web Works

What really happens when you type a web address: browsers, servers, requests, responses — and the three languages every page is made of.

🎓Beginnerlevel
⏱️25 minto finish
✏️1activities

📂 HTML: The Structure🏷️ HTML

🎯 By the end of this lesson you can…

  • Describe what happens when you open a website
  • Explain the roles of HTML, CSS and JavaScript
  • Know what a URL, a browser and a server are

Opening learnwith.khanamir.me

  1. 1You type the addressthe URL tells the browser which server and which page
  2. 2DNS finds the serverlike looking up a phone number from a name
  3. 3The browser sends a request“please send me the home page”
  4. 4The server respondswith an HTML file
  5. 5The browser builds the pageand asks for the CSS, JavaScript and images the HTML mentions

Your first page

🌐 HTML · CSS · JS index.html 👆 Tap a line to explain it
1<!doctype html>2<html>3  <head>4    <title>My first page</title>5  </head>6  <body>7    <h1>Hello, web! 🌍</h1>8    <p>I made this page myself.</p>9  </body>10</html>

Press 👁 Preview, then ✏️ Edit and change the heading. You are now a web developer.

💡 Concept check
Which language decides what colour a button is?

📌 Key takeaways

  • Your browser asks a server for files; the server replies with HTML, CSS, JavaScript and images.
  • HTML = content and structure, CSS = looks, JavaScript = behaviour.
  • A URL is the address of a file on a server.

Finished reading & practising?

Saved in this browser. Create a free account to keep it forever.