URL

https://datatracker.ietf.org/doc/html/rfc3986#section-3

https://example.com/over/there?name=ferret#nose
\_/     \_________/\_________/ \_________/ \__/
 |           |            |            |    |
scheme     authority       path    query   fragment

A domain is an authority.

Path is a way to find a certain page of a site. It may or it may not end witn “/”.

Query represent some params. It is just a string that will be sent to the server. On the server this query string may be parsed by a web framework or CMS. Traditionally if several params are passed, they are separated by “&”.

Fragment represents a part of the page.
If an ID of an HTML document is mentioned as a fragment, browser will scroll the page down to that element.

 

Contents

Rate article
Add a comment