5.1 The internet and the World Wide Web (WWW)

← Topic 4.2 Programming languages, translators and IDEsComputer Science contentsTopic 5.2 Digital currency →
Chapter 5 · The internet and its uses

5.1 The internet and the World Wide Web (WWW)

The internet and the World Wide Web are closely connected, but they are not the same thing. This topic explains how the internet provides the underlying worldwide network, how the Web uses it to deliver pages and resources, how URLs and HTTP/HTTPS are used, how browsers locate and display web pages, and how cookies store information between visits.

Internet vs WWWURLsHTTP & HTTPSWeb browsersDNS & retrievalCookies

What you need to understand

You should be able to distinguish the internet from the World Wide Web; identify the parts of a URL; explain HTTP and HTTPS; describe the purpose and features of a browser; explain how DNS helps locate and retrieve a web page; and compare session and persistent cookies, including their uses.

5.1.1

The differences between the internet and the World Wide Web (WWW)

The word internet comes from interconnected network. It is the worldwide system that links networks and individual devices together. Although we often speak of “the internet” as if it were one object, it is better understood as a global network of networks that depends on physical infrastructure such as cables, routers, switches and other networking hardware.

The World Wide Web (WWW) is only one service that uses the internet. It is the huge collection of web pages and other web resources that users access with web browser software. The Web therefore depends on the internet, but the internet can also be used for activities that are not the Web, such as sending email or online communication.

Do not use the terms as synonyms: the internet is the underlying worldwide interconnected network; the World Wide Web is a collection of web resources accessed through that network.
InternetWorld Wide Web (WWW)
Worldwide collection of interconnected networks and devices.Collection of multimedia web pages and other information held on websites.
Can be used to send and receive email.Web resources are accessed using web browsers.
Supports online communication such as text, audio and video chat.Uses URLs to specify the locations of websites and web pages.
Makes use of transmission and internet protocols such as TCP and IP.Web pages use HTML, and web transfers use HTTP or HTTPS.
Provides the network used to reach servers and other devices.Uses the internet to obtain information from web servers.
Can you tell the internet and the Web apart?
5.1.2

Uniform resource locators (URLs)

A Uniform Resource Locator (URL) is the text address used to locate and access a website or a particular resource on the Web. A user can type a URL into the browser's address bar, or reach the same URL by selecting a hyperlink.

The general form described in the topic is:

protocol://website address/path/file name

Parts of a URL

Protocol

The protocol is normally http or https. It tells the browser which set of rules is being used to transfer the web resource.

Website address

The website address can contain the domain host (such as www), the domain name, a domain type such as .com, .org, .net or .gov, and sometimes a country code such as .uk, .de or .cy.

Path

The path identifies the page or location inside the website. When the path is omitted, the browser normally requests the site's root location.

File name

A file name can identify a particular item or resource at the requested location.

Example

https://www.hoddereducation.co.uk/ict

https is the protocol. www is the domain host. hoddereducation is the domain name. .co.uk includes the domain type/country part, and /ict is the path requested from the website.

Identify the parts of a URL.
5.1.3

HTTP and HTTPS

Hypertext Transfer Protocol (HTTP) is a set of rules used when files and web content are transferred across the internet. A browser and web server follow the same protocol so that requests and responses can be understood.

HTTPS is the secure form of HTTP. When security such as SSL or TLS is used, the connection is protected while data is being sent and received. The S in HTTPS stands for secure.

HTTPHTTPS
Rules for transferring web files/data across the internet.Uses the same web-transfer purpose but adds security to the connection.
Shown with the http scheme in a URL.Shown with the https scheme in a URL.
Does not by itself indicate the secured connection described in this topic.Uses security technology such as SSL or TLS to provide a more secure way to send and receive data.
Exam point: HTTPS does not mean a different website language. It means that the transfer between browser and server uses a secured HTTP connection.
Check HTTP and HTTPS.
5.1.4

Web browsers

A web browser is software that allows a user to access and display web pages on a device. Websites send content written in HTML (HyperText Markup Language); the browser interprets that HTML and presents the resulting page, which may include text, images, audio and video.

Browsers provide features that make navigation and repeated use of websites easier:

Course-book Figure 5.1 showing a web hyperlink
Course-book Figure 5.2 showing browser tabs, address bar and favourites
Recognise common browser functions.
5.1.5

Retrieval and location of web pages

Websites are written in HTML and stored on web servers. A web server has an IP address. The browser needs to reach that address before the required page can be downloaded.

Users normally enter a domain name instead of memorising an IP address. A Domain Name Server (DNS), also described as part of the domain name system, finds the IP address that matches the domain name in the URL. DNS servers hold mappings between domain names/URLs and their corresponding IP addresses, and they can also use cached results.

Course-book Figure 5.3 showing how DNS is used to locate and retrieve a web page

How the page is located and returned

  1. The user opens a browser and enters a URL. The browser asks a DNS server for the website's IP address.
  2. If the first DNS server does not have the required mapping in its database or cache, it sends a request to another DNS server.
  3. When a DNS server finds the matching IP address, that address is returned. The first DNS server can also store the mapping in its cache/database.
  4. The website's IP address is sent back to the user's computer.
  5. The computer establishes communication with the web server. The required HTML files are downloaded, and the browser interprets the HTML and displays the page.
Why DNS matters: the user can remember a readable domain name while DNS handles the conversion to the IP address needed to contact the server.
Put the DNS process in the right order.
5.1.6

Cookies

Cookies are small files or small pieces of code stored on a user's computer/device by a website through the browser. A cookie can hold pairs of values, such as a key and associated data. When the user returns to the website, the browser can provide the stored cookie so that the site recognises information about the user or their previous activity.

Cookies can maintain preferences such as language or currency, remember activity from an earlier visit and help customise what the website displays. The topic distinguishes two main types: session cookies and persistent (permanent) cookies.

Session cookies

A session cookie is temporary. It is held in temporary memory while the browser session is active. One common use is keeping items in a virtual shopping basket while the user moves between pages. A cookie with no expiry date is treated as a session cookie. In the textbook description, a session cookie does not collect information from elsewhere on the user's computer and does not personally identify the user. It is removed when the browser is closed or the website session ends.

Persistent cookies

A persistent cookie remains stored after the browsing session has ended. It can remember login details or other preferences so the website can recognise the user's browser during a later visit. It remains until its expiry condition is reached or the user deletes it. This removes the need to enter the same information every time the site is visited and allows data to be carried from one session to the next.

The textbook also notes that more personal information should only be stored when the user has provided it and agreed to it being stored, and that legitimate websites protect such personal information using encryption. It describes legal controls intended to limit how long some persistent cookies remain active. Persistent cookies also reduce the amount of per-user information that a web server would otherwise need to store centrally and make it easier to recognise a returning browser without requiring a fresh login every time.

Session cookiePersistent cookie
Stored temporarily for the current session.Stored on the user's storage and remains between sessions.
Removed when the browser is closed or the website session ends.Remains until it expires or is deleted.
Useful for temporary state such as items in an online shopping basket.Useful for remembering login details, preferences and activity across visits.
Course-book Figure 5.4 showing cookies on a first login
Course-book Figure 5.5 showing a persistent cookie on a subsequent login

Uses of persistent cookies

Tracking: persistent cookies can be called tracking cookies because they can carry information about activity and preferences from one visit to another, allowing a site to recognise a returning browser and tailor content or advertising.
Compare session and persistent cookies.

Topic 5.1 revision checklist

Explain why the internet and the World Wide Web are different.
State examples of services that use the internet.
Define a URL and identify its protocol, website address, path and file-name parts.
Explain the difference between HTTP and HTTPS.
Define a web browser and explain how it uses HTML to display pages.
Describe browser features including home page, bookmarks, history, navigation, tabs, hyperlinks, cache, JavaScript and the address bar.
Explain why a web server's IP address is needed.
Explain how DNS maps a domain name to an IP address.
Describe the sequence used to locate, retrieve and display a web page.
Define a cookie and explain why websites use cookies.
Compare session and persistent cookies.
Describe common uses of persistent cookies.
Ready for a mixed Topic 5.1 check?
← Topic 4.2 Programming languages, translators and IDEsComputer Science contentsTopic 5.2 Digital currency →