The double forward slashes after the first colon are then only necessary if the authority part is filled. Furthermore, authority can also contain user information that is then detached from the domain’s @ symbol, and finally another port designation, which in turn is separated from the domain with a colon.
A typical web address is a good example: "https://example.org/test/test1?search=test-question#part2"
- scheme: https
- authority: example.org
- path: test/test1
- query: search=test-question
- fragment: part2
In the example, the URI refers to one part of a website. This part (part2) is accessed via HTTP; is located on a device with example.org as the identifier and can be found at the specified path if one performs a search beforehand. With the Uniform Resource Identifier, an email address can also be identified: "mailto:user@example.org".
- scheme: mailto
- path: user@example.org
In this case, not only are the mandatory components contained in the URI. Other potential resources can be identified with this syntax, such as files or even telephone numbers.