1.URL Anatomy:
oA URL (Uniform Resource Locator) is a unique web address that enables internet users to locate a specific website or online resource without having to know its IP address.
oThe structure of a URL consists of several components, each serving a specific purpose.
2.Domain Name:
oThe domain name is a critical part of the URL.
oIt follows the scheme (protocol) and precedes the path or port (if specified).
oThe domain name is composed of labels separated by dots (periods).
oEach label represents a specific level within the domain hierarchy.
oFor example:
In the URL https://www.example.com/path/to/resource, the domain name is example.com.
In the URL https://blog.example.co.uk, the domain name is blog.example.co.uk.
3.Effective Top-Level Domain (eTLD):
oThe domain name includes the top-level domain (TLD) and the second-level domain (SLD).
oThe TLD specifies the website type and follows the SLD.
oCommon TLDs include .com, .org, and .net.
oGeo-specific TLDs include country codes like .au, .uk, and .in.
4.Subdomain:
oA subdomain is a division of a website.
oWebmasters create subdomains to organize different site areas with distinct functions (e.g., blogs, forums, support portals).
oSubdomains appear before the domain name in the URL.
oExamples:
support.example.com (subdomain: support)
blog.example.co.uk (subdomain: blog)
5.Scheme (Protocol):
oThe scheme specifies the protocol that the server will use to access the page.
oCommon schemes include:
http (Hypertext Transfer Protocol)
https (Hypertext Transfer Protocol Secure)
oThe scheme always precedes the rest of the URL information.
oExample: https://www.example.com
6.Path:
oThe path indicates the specific location on the website where the user wants to go.
oIt can include directories, folders, specific page names, and file names.
oExample: https://www.example.com/path/to/resource
7.Conclusion:
oIn summary, the domain name is the part of the URL that identifies the server hosting the web page.
oIt plays a crucial role in directing users to the correct website.
References
1.What are the parts of a URL? | web.dev
2.Parts of a URL: A Short Guide | HubSpot Blog