Domains, Subdomains and Subdirectories

Posted in Notes on 3 March 2015

Domains, subdomains, and subdirectories are all components of the hierarchical structure used to organise content on the internet. The terms can be confusing, here's what each means:

A domain is a unique name that identifies a website on the internet. It typically consists of two parts: the second-level domain (SLD) and the top-level domain (TLD). For example, in the domain “,” “example” is the SLD and “.com” is the TLD. Domains are used to navigate to specific websites and are part of the URL that users type into their web browsers to access a website.

A subdomain is a domain that is part of a larger domain. It precedes the primary domain name and is separated by a period. Subdomains are often used to organise and categorise content within a domain. For example, in the URL “,” “blog” is the subdomain of the domain “” Subdomains can be used for various purposes, such as hosting blogs, forums, or specialised sections of a website.

A subdirectory, also known as a subfolder, is a directory or folder located within another directory or folder. In the context of websites, subdirectories are used to organise content within a domain or subdomain. They are part of the URL path that follows the domain or subdomain. For example, in the URL “,” “blog” is a subdirectory of the domain “” Subdirectories are often used to organise different sections or types of content within a website.

  • The website’s domain name is the main address used to access the website.
  • A subdomain is the subdivision of a domain name.
  • A subdirectory or subfolder is the directory or folder located on a domain or subdomain.

Domains are the main addresses of websites, subdomains are subdivisions of domains used for organisation, and subdirectories are folders within domains or subdomains used to further organise content.

Related Notes Posts

May 2024

Email and newsletter deliverability best practice

Email deliverability refers to the ability of an email to successfully reach the recipient's inbox, rather than being marked as spam or bouncing back. High... Continue reading

February 2024

Animated SVGs (Scalable Vector Graphics)

Animated SVGs, Scalable Vector Graphics, are increasingly popular choices for adding dynamic elements to websites. Their scalability, lightweight nature, and flexibility make them attractive options... Continue reading

December 2023

Using Scalable Vector Graphics (SVGs)

Scalable Vector Graphics (SVGs) have revolutionised website design, offering unparalleled flexibility, scalability, and interactivity. As versatile graphic elements, SVGs can enhance the visual appeal and... Continue reading

More Notes Posts