petrhurtak.com site logopetrhurtak.com

URL parts

I always got confused about what certain parts of an URL are called, so here is a simple diagram that should help. Some parts are not 100% specified, so there can be slight variations of what people call them.

Common URL

https://www.example.com/products/computers.php?type=laptop#return-policy

Parts of the URL

PartName
https://URLoriginprotocol,
scheme
wwwdomain,
hostname
subdomain
examplesecond level domain
comtop level domain
products/path namedirectory
computers.phpfile,
page
?type=laptopquery string,
parameters,
search
#return-policyfragment,
hash

Edit on GitHub · Discuss on Twitter