PDA

View Full Version : What are the 5 parts of a URL?



jsharma
02-01-2020, 12:46 AM
Hello friends,

What are the 5 parts of a URL?

sophiawils59
02-03-2020, 02:46 AM
A URL consists of five parts -- the scheme, subdomain, top-level domain, second-level domain, and subdirectory

RH-Calvin
04-09-2020, 10:19 PM
A Uniform Resource Locator, colloquially termed a web address, is a reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identifier, although many people use the two terms interchangeably.

sulbha
05-03-2020, 09:18 PM
Hi All,
Depends on how deep you want to go

Example URL:
https://www.example.org:80/something/this.html?param1=value1&param2=value2#here

breaks down into;

1. Scheme(https:// (also known as “protocol”))
2.Domain (www.example.org.uk)
A. Subdomain (www)
b. DomainName (example.org.uk)
i. TLD (.uk (top level domain))
ii. SLD (.org (second level domain))
3.Port (:80)
4.Path (/something/this.html)
A. Directory Path (/something/)
B. File Path (this.html)
i. File Name (this)
ii. File Extension (.html)
5.Query (?param1=value1&param2=value2)
A. Parameter and Value Pair (param1=value1)
B. Parameter and Value Pair seperator (&)
6.Fragment (#here)