Challenge - 5 Problems
URL Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Identify the parts of a URL
Look at this URL:
https://www.example.com:8080/path/to/page?search=books#section2
Which part represents the port number?
https://www.example.com:8080/path/to/page?search=books#section2
Which part represents the port number?
Attempts:
2 left
💡 Hint
The port number comes after the domain and a colon (:).
✗ Incorrect
In a URL, the port number is the number after the domain name separated by a colon. Here, 8080 is the port number.
❓ trace
intermediate1:30remaining
Trace URL components extraction
Given this URL:
What is the value of the query string?
http://blog.site.org/articles?id=123#commentsWhat is the value of the query string?
Attempts:
2 left
💡 Hint
The query string comes after the question mark (?) in a URL.
✗ Incorrect
The query string is the part after '?' and before '#'. Here, it is 'id=123'.
❓ Comparison
advanced2:00remaining
Compare URLs with and without port numbers
Which URL will connect to the default HTTP port?
Attempts:
2 left
💡 Hint
Default HTTP port is 80 and usually omitted in URLs.
✗ Incorrect
When no port is specified, HTTP uses port 80 by default. Option A omits the port, so it uses port 80.
❓ identification
advanced1:30remaining
Identify the fragment identifier in a URL
In the URL
https://example.com/page.html#top, what does the fragment identifier represent?Attempts:
2 left
💡 Hint
Fragment identifiers come after the '#' symbol.
✗ Incorrect
The fragment identifier is the part after '#' and is used to jump to a specific section on the page.
🚀 Application
expert2:30remaining
Determine the full URL from parts
You have these URL parts:
- Protocol: https
- Domain: www.shop.com
- Port: 443
- Path: /products
- Query: category=books&sort=price
- Fragment: reviews
Which is the correct full URL?
- Protocol: https
- Domain: www.shop.com
- Port: 443
- Path: /products
- Query: category=books&sort=price
- Fragment: reviews
Which is the correct full URL?
Attempts:
2 left
💡 Hint
Port 443 is default for HTTPS and usually omitted.
✗ Incorrect
Port 443 is the default for HTTPS, so it is usually not shown in the URL. The protocol must be https, not http.