Week 13 · Unit 7.3: Connections are made · 3 lessons
2
Reading a URL
Computing 7: Unit 7.3, pp. 82–111
GoalName the parts of a URL and say why we use URLs instead of IP addresses.
New words
URL · the address of a web page or file, written in a set waydomain name · the easy-to-remember name of a website, such as www.example.comTLD · top-level domain: the last part of a domain name, such as .com or .orgpath · the part of a URL after the domain name that says which page or file you want
Explanation
A URL is the web address of a page or file. Names are simpler to remember than long strings of numbers, so we use URLs. A URL is written in a set way with several parts. It starts with the protocol, such as https, followed by ://. Next comes the domain name, such as www.example.com. The last part of the domain name is the top-level domain, or TLD. The path after the domain name says which page or file you want on that server. Common TLDs are .com for companies, .org for organisations and .net for networks, and many countries have their own.
Part
In https://www.example.com/shop/index.html
protocol
https://
domain name
www.example.com
TLD
com (the last part of the domain name)
path
/shop/index.html
Worked examples
Part
Value
protocol
https://
domain name
www.example.org
TLD
org
path
/news/today.html
Another URL, taken apart. In https://www.example.org/news/today.html the protocol is https, the domain name is www.example.org, the TLD is org and the path is /news/today.html.
TLD
Meaning
.com
commercial (companies)
.org
organisation
.net
network
.ke
Kenya
.uz
Uzbekistan
.br
Brazil
Some top-level domains. Countries have their own two-letter TLD.
URL
Page
https://www.example.com/cats/index.html
cats page
https://www.example.com/dogs/index.html
dogs page
One server can hold many pages. The domain name stays the same and only the path changes.
Class activity
URL strips (no computer): cut paper into strips and write one part on each strip: https://, www.example.net, /games/, chess.html, .net. Mix them up and build a correct URL. Then invent a second site on example.org with two pages and write its URL parts on new strips. Swap strips with a partner and rebuild each other’s URLs. If you have a computer or tablet, ask an adult to show you the address bar of a page you already use, and find the protocol and the TLD without typing anything.
Practice
1
Name the parts of this URL: https://www.example.net/music/songs.html
Ben typed https:/www.example.org/art club/index.html. Find two mistakes.
After https there must be a colon and two slashes (://), not one slash. A URL cannot contain a space: art club must be written without a space, for example art-club.
3
Why do people use URLs and not IP addresses to visit websites?
A URL is a name that is easy to remember. Nobody could remember the long numbers for twenty websites. DNS turns the name into the number for us.
4
A school charity and a shop each want a web address. Which TLD (.com, .org or .net) is each likely to choose, and why?
TLD
Usual meaning
.com
?
.org
?
.net
?
The charity is an organisation, so .org. The shop is a business, so .com. These are common choices, not strict rules.