It is possible to have a considerable number of parts in a URL, but almost every URL will have at least five elements. The five most common components of a URL include the protocol, subdomain, root domain, and top-level domain. Other parts of a URL include a port number, query string separator, query string parameter, and fragment.