Parts of a URL
A URL consists of ten parts: the scheme, subdomain, top-level domain, second-level domain, subdirectory, parameter, port, path, query, and fragment. While a URL doesn’t have to contain all of these parts at once, it will always have at least three of them.
Below is an illustration of the basic parts of a URL. A URL will always have a scheme or protocol, a domain name, and path: