Understanding URL Components
A URL is composed of scheme, user info, host, port, path, query, and fragment. This guide explains each part with examples to improve discoverability.
Scheme (Protocol)Specifies the protocol, e.g., https, http, ftp.User InfoOptional username and password before host, e.g., user:pass@.Host (Domain)The domain or IP that identifies the server, e.g., example.com.PortOptional network port; defaults to 80 (http) or 443 (https).PathHierarchical resource location on the server, e.g., /path/to/page.QueryKey–value pairs after ?, e.g., ?foo=1&bar=baz.Fragment (Hash)Client-side anchor after # pointing to a section, e.g., #section.