A simple URL would normally have the pattern of protocol://host:port:
But if I omit the protocol:
localhost:8080
Is it still a URL or does it have a different name?
I am aware of the existence of protocol-relative URLs, is this also a case of them?
localhost:8080can’t be a relative reference, as these have to begin with//(in which case it would be a network-path reference, typically called protocol-relative reference), with/, or with a path segment that doesn’t contain:.(For the latter case, you could use
./localhost:8080.)localhost:8080as part ofhttp://localhost:8080In the URI
http://localhost:8080, the partlocalhost:8080is the authority component.The part
localhostis the host subcomponent, the part:8080is the port subcomponent.localhost:8080as URIlocalhost:8080itself is, syntactically, also an URI:localhostwould be the scheme8080would be the pathBut as
localhostis not a registered URI scheme,localhost:8080is currently not a valid URI.