Understand what is meant by a uniform resource locator (URL)
🌐 The Internet and Its Uses
The Internet is a global network that lets computers talk to each other. It powers everything from social media to online shopping, research, and entertainment. Understanding how we find and share information on the Internet is key to using it safely and effectively. One of the most important concepts is the Uniform Resource Locator (URL), which is like the address you type into a web browser to reach a specific page or file.
🔗 What is a URL?
A URL tells a web browser exactly where to find a resource on the Internet. Think of it as a set of instructions that includes:
- Which protocol to use (e.g.,
httporhttps) - The server’s address (like a domain name)
- Where on that server the resource is located (a path)
- Optional extra information such as search terms or page anchors.
🏠 Analogy: The Internet is a City, a URL is a Street Address
Imagine the Internet as a huge city. Each website is a building, and each page or file is a room inside that building. A URL is the full street address that tells you:
- Street name – the domain (e.g.,
example.com) - Building number – the server’s IP address (hidden from you)
- Room number – the path to the specific file (e.g.,
/about-us) - Floor or door – query parameters or fragments that give extra instructions (e.g.,
?search=booksor#contact)
📋 Components of a URL
| Component | What it Means | Example |
|---|---|---|
| scheme | Protocol used to access the resource (e.g., http, https, ftp) |
https |
| host | Domain name or IP address of the server | www.wikipedia.org |
| port (optional) | Specific port number on the server (default 80 for http, 443 for https) | :443 |
| path | Location of the resource on the server | /wiki/Computer_science |
| query (optional) | Additional data sent to the server (key=value pairs) | ?search=AI |
| fragment (optional) | Jump to a specific part of the page | #History |
💡 Why URLs Matter
- They let browsers locate and retrieve the correct file.
- They can include search queries or filters that change the content you see.
- They enable bookmarking and sharing of exact pages.
- They help web developers organize and link resources efficiently.
🚀 Practice: Build Your Own URL
- Choose a website (e.g.,
https://www.wikipedia.org). - Add a path to a specific article (e.g.,
/wiki/Computer_science). - Include a query to search for a term (e.g.,
?search=AI). - Finish with a fragment to jump to a section (e.g.,
#History).
Result: https://www.wikipedia.org/wiki/Computer_science?search=AI#History
Revision
Log in to practice.