How it works
A domain name is a row of labels with dots between them. Read it from right to left: ending, name, subdomain, host. In www.shop.example.com the ending is com, and example.com is the part that is registered.
Read the full guide
From right to left
The root stands at the far right and has no name. Then com, the top-level domain. Then example, the second-level domain. Every label further left is a subdomain of what stands to its right. www is only a label by custom: the same site may answer without it.
Parts of a URL explained
Scheme, then ://, then the host, which is the domain name. A port may follow. The path says which page, the query adds data after a question mark, the fragment jumps to a place in the page after #.
- Read from the right: example.com.example.net lies under example.net, not under example.com.
Questions and answers
What are the three parts of a domain name?
Top-level domain, second-level domain and subdomain. In www.example.com they are com, example and www. The dots between them belong to no part.
Is www part of the domain name?
Yes, where it is written. It is a label below example.com, so www.example.com is a subdomain. It is not part of the registered name.
What is the difference between a domain name and a URL?
A domain name names a place on the internet: example.com. A URL is a whole address with a scheme and a path, such as https://example.com/hats. The domain name is its host.
How long can a domain name be?
Each label has at most 63 characters and the whole name at most 253, the last dot not counted. Capitals make no difference.
How is .com different from .jp?
The ending .com is generic and belongs to no country. The ending .jp is a country code of two letters.