HTML and CSS · lesson 27 of 30 · free

How websites work — HTML and CSS for kids

When you open a page, your browser asks a web server for it, the server sends the files back and the browser shows them. DNS turns a domain name into the server’s number. A URL has parts: the protocol (https), the domain name (www.example.com) and the path (/about.html). HTTPS, shown with a lock, scrambles the data on its way — but a lock alone does not prove a site is honest.

▶ Watch how it works

Got it? Practise ↓

Code tip

Ask, send, show — “the browser asks, the server sends, the browser shows”

  1. URL = protocol :// domain name / path, e.g. https://www.example.com/about.html.
  2. Browser asks → DNS finds the server → server sends the files → browser shows the page.
  3. https (with the lock) scrambles the data; http does not.

Use it for: Understanding web addresses, checking links before you click and computer lessons on the internet.

Worked example: 🌍 What is the domain name in this URL?
https://www.example.com/about.html → www.example.com

  1. https is the protocol and /about.html is the path.
  2. The part in between is the domain name: www.example.com.

Check: https + :// + www.example.com + /about.html = the whole URL ✓

▶ Watch it animated

✏️ Practice

Work it out in your head or on paper, type the answer and press Check. Stuck? Press “Show me how”.

Right: 0 · Tried: 0

🏁 Lesson 27 test

20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.

🏅 Sign in with Google to earn the 🔒 Address Bar Ace badge when you pass — and a certificate when you finish all 10 lessons of Part 3 · Web Development. You can still take the test without signing in.

🖨️ Web Worksheet: How Websites Work

✨ Free AI tutor

Ask the AI tutor about this lesson

Why does it work? When should you use it? Ask in English, मराठी or हिंदी.

Sign in with Google to ask Free — 20 questions a day.

👩‍🏫 HTML and CSS classes near you — online or at home

Prefer a real teacher? TalentJR teachers take live online classes anywhere in India and visit homes in selected cities. Tell us what you need and our team will call you with timings and fees.

Live online classesSmall groups or 1:1 with a teacher, from home, any city.
Teacher at homeA TalentJR teacher visits your home (selected cities).
At a centreClasses at a TalentJR partner centre near you, where available.
Badges, certificates & gifts A badge for every lesson you pass, a certificate for every part you finish, plus TalentJR Points for daily practice. Computer worksheets Flowcharts, block coding, spreadsheets and safe internet.