What is a URL?
A URL is the address of a page or file on the web, such as https://www.example.com/about. It tells your browser how to connect, which website to ask and which page to load.
Free Lesson
A URL (Uniform Resource Locator) is the address of a page or file on the web, such as https://www.example.com/about. It tells your browser how to connect, which website to ask and which page to load.
Every URL is built from the same few parts. Snap them together below and watch the page change, then test yourself on which edits take you somewhere new.
Interactive lesson
Pick each part of the URL for a pretend cookie shop. The address bar and the page preview update as you go.
https://shop.example.com/cookies
The shop site of example.com
Cookies page
Your browser connects securely to shop.example.com, asks it for the cookies page.
Challenge: assemble the address for a given page
Pick a challenge, then use the part buttons above to solve it.
Start from https://shop.example.com/cookies?sort=price#reviews and change one part. What happens?
Anatomy
https://shop.example.com:443/cookies/chocolate-chip?sort=price&vegan=yes#reviews
| Part | Example | What it does |
|---|---|---|
| Scheme | https:// | The protocol, or how the browser should connect. https adds encryption. |
| Subdomain | shop. | An optional section of a website, such as shop, blog or www. |
| Domain name | example.com | The website's registered name. The last part (.com) is the top-level domain. |
| Port | :443 | Usually hidden. Like a door number on the server; https uses 443 by default. |
| Path | /cookies/chocolate-chip | Which page or file on that website, like folders on a computer. |
| Query string | ?sort=price&vegan=yes | Extra settings as key=value pairs joined by &, used for search, filters and tracking. |
| Fragment | #reviews | A spot on the page to jump to. It stays in the browser and is not sent to the server. |
Common question
| URL | Domain name | IP address | |
|---|---|---|---|
| What it is | The full address of one page or file | The website's name | The server's number on the internet |
| Example | https://shop.example.com/cookies | example.com | 203.0.113.10 |
| Who uses it | You and your browser | People, and DNS to find the IP | Computers and routers |
How to
Read up to ://. https means the connection is encrypted; http means it is not.
The real website is the part just before the first single slash, read from the right: in shop.example.com it is example.com.
Each /folder after the host narrows down which page you will get.
Everything after ? is settings, like a search word or a filter. Long ones are often tracking.
A # at the end only jumps to a section of the same page.
Code Card gives you a public profile at codecard.dev/your-name with activity graphs, streaks and badges from your Claude Code, Codex and OpenClaw sessions. Start with npx code-card.
FAQ
A URL is the address of a page or file on the web, such as https://www.example.com/about. It tells your browser how to connect, which website to ask and which page to load.
URL stands for Uniform Resource Locator. It is a standard (uniform) way to locate a resource, such as a web page, image or video, on the internet.
A URL has a scheme (https://), a host or domain name (www.example.com), an optional port, a path (/about), an optional query string (?q=cats) and an optional fragment (#top).
No. The domain name, such as example.com, is only one part of a URL. The URL is the full address, including the scheme, path and any query, so it points to one exact page.
Look in the address bar at the top of your browser. On a phone, tap the address bar or use Share then Copy link to see and copy the full URL.