A URL usually consists of four important parts: the protocol, the server name, the path specification and the file name. The protocol specifies which protocol type is used for communication, while the server address specifies which server the user should connect to. The path specifies the directory path where the resource is stored, and the filename is the name of the file that is requested.