Splitting a URL into its parts
A URL splits into protocol (https), domain name (www.example.com) and web page or file name (shop/index.html). Each part can be labelled.
Understanding Splitting a URL into its parts in IGCSE Computer Science Paper 1
What it does: https comes before :// and tells the browser which set of rules to use to fetch the page. Everything after the domain name, starting with the first single /, shows which page or file is wanted. The protocol must be followed by :// (a colon and two slashes). The wrong URL only has one slash. The second URL is missing the colon after https. It should be https:// so the protocol is clearly separated. Without https:// at the start there is no protocol part, so only two of the three parts can be labelled.
Common mistakes: The URL is written wrongly. The protocol must be followed by :// (colon and two slashes), so it should be https://www.ex.com/a.html. The domain name is only shop.com. The /buy.html part is the web page or file name, so the line should be Domain: shop.com.
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.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
https://www.example.com/shop/index.htmlFill in the Blanks
Spot the Error
Student with a class code? Join your class →