← IGCSE Computer Science Paper 1

URL part: the web page or file name

The last part of a URL. It names the web page or file wanted: folders (the path) then the file name, like shoes.html. With no file name, the server sends a default page.

Understanding URL part: the web page or file name in IGCSE Computer Science Paper 1

What it does: The extension after the dot tells the browser what type of file is wanted, and .html means a web page. The folders images and logos make up the path, and school.png is the file name at the end. If no file name is given, the web server sends a default page, usually the site's home page. The URL names the file, and the web server holds it. The protocol (http or https) only says how to request it.

Common mistakes: URLs separate folders and the file name with forward slashes (/), not backslashes. It should be https://a.com/men/hat.html. The file name includes its extension. The file name is toys.html, not just toys.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 464–476) and word search (Modules 464–489).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
In https://www.shop.com/products/shoes.html, which part names the page wanted?
/products/shoes.htmlhttps://www.shop.com
Matches
https://www.shop.com/products\shoes.html
↓
A backslash was used in the path. Folders in a URL are separated by forward slashes, so it should be /products/shoes.html.
Applying
Meanings
Term
/products/shoes.html
Meaning
The last part of a URL. It names the web page or file wanted: folders (the path) then the file name, like shoes.html. With no file name, the server sends a default page.
Practice
https://www.shopzone.com/products/shoes.html
Testing
Gaps
https://www.shop.com/products/shoes
Check Answer
Spots
1https://a.com\men\hat.html
2Domain: a.com

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Bear' badge — Forest Guardian, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. In https://www.shop.com/products/shoes.html, which part names the page wanted?
A. https://www.shop.com
B. /products/shoes.html ✓
The final part of the URL, after the domain name, gives the path and file name of the page wanted. The start is the protocol and domain.
2. In /products/shoes.html, what is 'products'?
A. A folder in the path ✓
B. The file name
Folders make up the path. The file name comes last, so here it is shoes.html.
3. Which one is the file name in /products/shoes.html?
A. shoes.html ✓
B. /products/
The file name is the very last item in the URL. /products/ is the path of folders leading to it.
4. What does the .html extension at the end of shoes.html tell us?
A. The file is stored on the user's computer
B. The file is a web page written in HTML ✓
The extension shows the file type. .html means a web page. The file itself is stored on the web server.
5. A user types https://www.shop.com with no file name. What happens?
A. The server sends a default page, such as the home page ✓
B. The server sends back an error every time
If no file name is given, the web server sends a default page, usually the site's home page.

Match the Pairs

/products/shoes.html → The path and file name at the end of a URL: the products folder, then the web page shoes.html
https://www.shop.com/ → A URL with no file name, so the server sends the site's default page, such as index.html
The file extension .html shows the file is a web page → about.html
Folders in the path are separated by / and come before the file name → /images/logos/school.png
https://www.shop.com/products\shoes.html → A backslash was used in the path. Folders in a URL are separated by forward slashes, so it should be /products/shoes.html.
https://www.shop.com/shoes html → The file name has a space and no dot, so the extension is missing. It should be shoes.html with a dot before html.

Key Term

/products/shoes.html
The last part of a URL. It names the web page or file wanted: folders (the path) then the file name, like shoes.html. With no file name, the server sends a default page.

Fill in the Blanks

1. https://www.shop.com/products/shoes.html
Hint: Type the file extension that shows the file is a web page.
2. https://www.shop.com/products/shoes.html
Hint: Type the single character that separates the domain name, the folder and the file name.
3. Path: /images/ File: logo.png https://www.school.com/images/logo.png
Hint: Type the folder name from the path, which comes before the file name.
4. https://www.shop.com/ Default page sent: index.html
Hint: Type the usual name of the default page the server sends when the URL has no file name.
5. URL: https://www.shop.com/sale/boots.html Folder: /sale/ File name: boots.html
Hint: Type the final part of the URL that names the page wanted.

Spot the Error

Question 1
A https://a.com\men\hat.html
B Domain: a.com
C Path: /men/
D File name: hat.html
Line A — URLs separate folders and the file name with forward slashes (/), not backslashes. It should be https://a.com/men/hat.html.
Question 2
A https://a.com/kids/toys.html
B Protocol: https
C Path: /kids/
D File name: toys
Line D — The file name includes its extension. The file name is toys.html, not just toys.
Question 3
A https://a.com/
B No file name is given
C Server sends a default page
D Often named index.com
Line D — A default page is a web page file such as index.html. .com is a domain ending, not a file extension for a web page.
Question 4
A url = a.com/shop/cart.html
B folder = shop
C file = shop
D ext = html
Line C — shop is the folder (part of the path). The file name is the last part, so it should be file = cart.html.
Question 5
A https://a.com/music/rock.html
B Path: /rock.html
C File name: rock.html
D Extension: .html
Line B — The path is the folder, which is /music/. rock.html is the file name, not part of the path.

Student with a class code? Join your class →