HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
The Internet, the Web and How Pages Reach You
  1. 1The internet, the world wide web and URLs
  2. 2HTTP, HTTPS and the web browser
  3. 3Finding a web page: DNS, web servers and cookies
  1. Computer Science
  2. /The Internet, the Web and How Pages Reach You
  3. /The internet, the world wide web and URLs

Course 5.1·Lesson 1 of 3

The internet, the world wide web and URLs

The internet and the world wide web are not the same thing. This lesson separates the two: the internet is the network of networks, and the web is the pages you reach through it. Then it reads a web address, a URL, part by part.

about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
The Internet, the Web and How Pages Reach You
  1. 1The internet, the world wide web and URLs
  2. 2HTTP, HTTPS and the web browser
  3. 3Finding a web page: DNS, web servers and cookies

Try the code and the simulations beside the lesson.

Two words that people mix up

Ask a friend what they did on the internet today. They may say they watched a video, sent a message and read a news page. All three used the internet. Only one of them, the news page, was the world wide web.

The internet is the infrastructure. It is a huge network of networks that covers the world. It is made of the cables, the wireless links, the routers and the computers that pass data from one network to another. You met routers and IP addresses in the chapter on computer hardware. The internet is those parts, joined together.

The world wide web (the web, for short) is the collection of websites and web pages that you reach using the internet. A web page is a document, written in a language called HTML. Pages link to each other, which is why we call it a web.

So the web is one use of the internet. Email, video calls, online games and file sharing are other uses. They travel over the same cables, but they are not web pages.

Four networks drawn as rounded boxes: a home network, a school network, a company network and a network of web servers. Each box holds small computer symbols. A router symbol sits at the edge of each network, and lines join the routers to each other. A label says that the whole picture is the internet, and a second label points only at the web pages stored on the web servers and says that they are the world wide web.

The picture shows four networks: a home, a school, a company and a network of web servers. Routers join them. The internet is everything drawn there. The web is only the web pages kept on the web servers.

Why routers, and not a cable to everyone?

Could we join every network to every other one with its own cable? With a few networks, maybe. But the number of cables grows very fast. With nnn networks, each one needs n−1n - 1n−1 cables, and each cable joins two networks. So the number of cables is

C=n(n−1)2.\displaystyle C = \dfrac{n(n - 1)}{2}.C=2n(n−1)​.

With 666 networks that is 151515 cables. With 100010001000 networks it is almost half a million. The internet joins millions of networks, so it cannot work like that. Instead, routers pass the data along from network to network until it arrives.

The address of a web page: the URL

Every web page has an address. It is called a uniform resource locator, or URL. A URL is a text-based address for a web page. You type it into the address bar of a browser, or you click a link that holds it.

The URL https://www.example.org/science/atoms.html written in large letters, with three coloured brackets under it. The first bracket, under https, is labelled protocol. The second, under www.example.org, is labelled domain name. The third, under science/atoms.html, is labelled web page or file name.

Look at this URL.

text
https://www.example.org/science/atoms.html

It has three parts.

  • The protocol: https. It is the set of rules that the browser and the web server use to talk. It ends with ://.
  • The domain name: www.example.org. It names the web server, the computer that holds the website.
  • The web page or file name: science/atoms.html. It is the page inside the website. Here the page atoms.html is in a folder called science.

A URL does not always show all three parts. If you type only www.example.org, the browser adds the protocol for you, and the web server sends its main page.

Why do we need a domain name at all? Computers on the internet find each other by their IP addresses, which are numbers. People find names much easier to remember than numbers. In the third lesson you see how a domain name is turned into an IP address.

Practise with new numbers

Try it in Python

The program splits a URL into its three parts. It uses the string methods split and find, which you met in the Python Foundations book. It finds the :// first, then the first / after the domain name.

Read it first. Then run it. Check each part against the list above.

1. Change the URL to http://www.example.net/maths.html. Predict the three parts, then run it.

2. Which line would go wrong for a URL with no page after the domain name, such as https://www.example.net? Try it.

Common mistakes

  • Saying the internet and the web are the same. The internet is the network itself. The web is the websites and web pages reached through it.
  • Calling email part of the web. Email uses the internet, but an email is not a web page.
  • Mixing up the parts of a URL. The protocol comes first, then the domain name, then the page or file name.
  • Thinking that computers use the domain name to find each other. They use IP addresses. The domain name is for people.

Remember these

  • The internet is the infrastructure: a network of networks, joined by routers.
  • The world wide web is the collection of websites and web pages accessed using the internet.
  • A URL is a text-based address for a web page. It can contain the protocol, the domain name and the web page or file name.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Sara sends an email to her teacher and then reads a web page about volcanoes. Which of the two used the world wide web?
  1. Name the three parts of the URL https://www.example.com/bags.html.
  1. Seven networks are joined so that each has its own cable to every other one. How many cables is that?
  1. Why do websites have domain names when computers find each other by IP address?
  1. Is the internet a collection of web pages? Explain in one sentence.

Enroll free in The Internet, the Web and How Pages Reach You

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

During one evening, Tomas does five things on his laptop…Easy · High School (9–10) · by StemPy Lab
A school has 8 separate computer networks: one in each of its buildings…Medium · High School (9–10) · by StemPy Lab
A student copies this web address from a poster…Easy · High School (9–10) · by StemPy Lab
Next: lesson 2HTTP, HTTPS and the web browser
← The Internet, the Web and How Pages Reach You
← PreviousHTTP, HTTPS and the web browser →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Split a URL into its partsPython Lab · by StemPy Lab