Components of URL

Every web page on the Internet is assigned a unique name known as URL (Uniform Resource Locator). It has four parts:

1. Method: It is also known as a protocol.
Example : HTTP, FTP

2. Host: It is the name of the computer where the information is located, although the name can be the alias name of the computer also.
Example : WWW.google.com

3. Port: This part is optional and it indicates the port number of the server to which the connection is made.
Example : HTTP uses port 80 and HTTPS uses port 443

4. Path: It is the local path of the file which is requested by the browser.