The internet and the world wide web

Computer Science · The internet and its uses. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Computer Science topics

The idea

The internet is the infrastructure: a huge network of networks joined by cables, routers and other hardware. The world wide web is the collection of web pages and websites that are accessed using the internet. They are not the same thing.

Each web page has a URL (uniform resource locator), a text-based address that is easy for people to use. A web browser is software that requests web pages and renders the HTML so the page is displayed.

Computers find each other with IP addresses, not names. A domain name server (DNS) finds the IP address that matches a domain name. Websites can also store small files called cookies on the user's device.

In simpler words

The internet is the hardware: a huge network of networks. The world wide web is the web pages you reach using it. Each page has an address called a URL. Computers find each other by number, so a DNS turns a domain name into an IP address. A browser asks for the page and displays it. Websites may save small cookie files.

An everyday comparison

The internet is like the road network, and the web is like the shops you drive to along it. DNS is like a phone book: you know the shop's name, and it gives you the address. The comparison stops working because the phone book only gives the address; it never delivers the goods. The web server sends the page, and the browser displays it.

Rules to remember

Common mistake

Students often say the DNS sends the web page. The DNS only returns the IP address; the web server sends the HTML and the browser renders it.

In the exam

Distinguish the internet as infrastructure and the web as pages. Split a URL into protocol, domain name and file name. Explain HTTPS as encrypted HTTP. Describe page retrieval as steps: browser sends domain name to DNS, DNS returns IP address, browser requests from web server, server sends HTML, browser renders it. For cookies, define them and compare session and persistent cookies with uses.

Worked example

An online shop keeps the items in a user's basket while they move from page to page. When the user closes the browser and opens it again, the basket is empty. Which type of cookie was used?

  1. The basket was remembered between pages, so the data was held in a cookie.
  2. The data was lost as soon as the browser was closed.
  3. A persistent cookie would still be on the device after the browser is closed, so it is not that type.

Answer: A session cookie.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Types of programming language, translators and IDEsDigital currency →Take a Computer Science test