A Uniform Resource Locator (URL) typically consists of five key parts:
-
Scheme: Indicates the protocol used (e.g., HTTP, HTTPS, FTP).
-
Host: Specifies the domain name or IP address of the server (e.g., www.example.com).
-
Port: An optional part that specifies the port number (e.g., :80 for HTTP).
-
Path: Indicates the specific resource or page on the server (e.g., /path/to/resource).
-
Query: An optional part that provides additional parameters (e.g., ?key=value&key2=value2).
Each part plays a crucial role in accurately locating and accessing resources on the internet.