URL part: the domain name

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

URL part: the domain name

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. In the URL https://www.example.com/shop, which part is the domain name?
A https://
B www.example.com
2. Which statement about a domain name is correct?
A It is a number that locates the host on a network
B It is a human-readable name for a website's host
3. Why do websites use a domain name?
A It is easier to remember than a number
B It makes the web page load faster
4. In www.example.com, what does the www prefix come before?
A The rest of the domain name (example.com)
B The protocol (https)
5. Which part of www.school.org is the top-level domain?
A .org
B www

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1https://www.example.com/index.html Awww.example.com
2.org Bwww.school.com
3A domain name is easier for people to remember than a number like 93.184.216.34 CA top-level domain, the last part of a domain name, often used by organisations
4The www prefix is the first part of many domain names DA number like that is an IP address. A domain name is a readable name such as www.example.com.
5The domain name in https://www.example.com/page.html is page.html EThe domain name part is www.example.com, the readable name of the website's host
6A domain name is a number such as 192.168.0.1 Fpage.html is the web page or file name, not the domain name. The domain name is www.example.com.

Definitions

www.example.com

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
https://___.example.com/index.html
2.
https://www.example.___/index.html
3.
https://www.school.___/home
4.
domain ← "www.example.com" OUTPUT ______
5.
https://www_example.com/index.html

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A url ← "https://www.cie.org"
B protocol ← "https"
C host ← "www.cie.org"
D tld ← ".com"
Question 2
A url ← "http://www.bbc.com"
B www ← "www"
C name ← "bbc"
D tld ← "bbc"
Question 3
A url ← "https://www.shop.com"
B domain ← "https://www.shop.com"
C OUTPUT domain
Question 4
A domain ← "www.example,com"
B ip ← "93.184.216.34"
C OUTPUT domain
Question 5
A domain = "www.school.org"
B parts = domain.split(".")
C prefix = parts[1]
D print(prefix)

Answer Key

URL part: the domain name
Section A: Quick Questions
Q1
B — www.example.com
Q2
B — It is a human-readable name for a website's host
Q3
A — It is easier to remember than a number
Q4
A — The rest of the domain name (example.com)
Q5
A — .org
Section B: Match the Pairs
Q1
https://www.example.com/index.html → The domain name part is www.example.com, the readable name of the website's host
Q2
.org → A top-level domain, the last part of a domain name, often used by organisations
Q3
A domain name is easier for people to remember than a number like 93.184.216.34 → www.example.com
Q4
The www prefix is the first part of many domain names → www.school.com
Q5
The domain name in https://www.example.com/page.html is page.html → page.html is the web page or file name, not the domain name. The domain name is www.example.com.
Q6
A domain name is a number such as 192.168.0.1 → A number like that is an IP address. A domain name is a readable name such as www.example.com.
Section C: Definitions
Q1
www.example.com — The human-readable name of a website's host in a URL, made of the www prefix and a top-level domain like .com or .org. It is easier to remember than a number.
Section D: Fill in the Blanks
Q1
https://www.example.com/index.html
Q2
https://www.example.com/index.html
Q3
https://www.school.org/home
Q4
domain ← "www.example.com" OUTPUT domain
Q5
https://www.example.com/index.html
Section E: Spot the Error
Q1
D — The URL ends in .org, so the top-level domain must be ".org", not ".com".
Q2
D — The top-level domain is the ending of the domain name, which is ".com" here. "bbc" is the name of the site.
Q3
B — The domain name does not include the protocol. It should be "www.shop.com" without "https://".
Q4
A — The parts of a domain name are separated by full stops, not commas. It should be "www.example.com".
Q5
C — The www prefix is the first part of the domain, which is at index 0. Index 1 would give "school".