Domains

Anatomy of a Web Domain: Root, Extension and Subdomain Explained

Learn to identify every part of a web domain—root, extension, and subdomain—with clear beginner-friendly examples.

From below of fiber optic switch with sockets and connected rubber cables on blurred background

A web domain is the address you type in a browser to reach a site — for example, www.mystore.com. But that text is not a single uniform block — it has distinct parts, each with its own name and function. Understanding the anatomy of a domain helps you make better decisions when registering, configuring, and managing your online presence.

The Parts of a Web Domain

Let's take an example URL and break it down from left to right:

https://shop.mycompany.com
Fragment Technical name Example
https:// Protocol Defines how the browser communicates with the server
shop Subdomain A specific section or service of the site
mycompany Root / domain name The name you register and own
.com Extension / TLD Identifies the category and sometimes the country

Let's explore each part in more detail.

The Root: The Name That Belongs to You

The domain root — also called the Second-Level Domain (SLD) — is the part you choose and register. It is what turns a generic address into your address.

In mycompany.com, the root is mycompany.

Characteristics of a good root:

  • Short and easy to remember (ideally under 15 characters).
  • No unnecessary hyphens or numbers.
  • Can be spelled out loud without ambiguity.
  • Related to your brand or core activity.

The root is the most valuable part of a domain. The extension can change or be complemented, but the root defines your online identity.

The Extension: Category and Geographic Origin

The extension is the segment that appears after the last dot. In technical terms it is called a TLD (Top-Level Domain).

The most common extensions:

  • .com — general commercial use, recognized worldwide.
  • .com.mx — commercial with Mexican identity, the go-to for local businesses.
  • .mx — the short version of the Mexican ccTLD.
  • .org — non-profit organizations.
  • .net — originally for networks, now general purpose.

The extension affects visitor perception and local search rankings. A site with .com.mx immediately signals that it is oriented toward the Mexican market.

If you are unsure which extension to choose, the domains section of this blog has detailed comparison guides for each use case.

The Subdomain: Divisions Within Your Domain

A subdomain is the prefix that comes before the root name, separated by a dot. It is a way to create independent sections within the same main domain without registering a new name.

Common use cases:

  • www.mycompany.com — the www subdomain is the most traditional; most servers redirect it automatically to the root domain.
  • blog.mycompany.com — articles or news section.
  • shop.mycompany.com — separate e-commerce platform.
  • app.mycompany.com — web application or user dashboard.
  • support.mycompany.com — customer service portal.

Subdomains are not purchased — you create them inside your hosting control panel (for example, in cPanel), pointing them to the same hosting account or to a different server depending on your needs.

From an SEO perspective, search engines generally treat subdomains as independent sites, though they share some of the main domain's authority. For very different content (such as a store vs. a corporate blog), a subdomain can make sense; for related content, subdirectories (/blog/, /shop/) are generally preferred.

How Are Domains "Read"? The Hierarchical Order

A detail that confuses many beginners: domains are read from right to left in terms of technical hierarchy.

  • Level 1 (DNS root): the invisible dot at the end of every URL (.).
  • Level 2 (TLD): .com, .mx.
  • Level 3 (SLD / domain root): mycompany.
  • Level 4 (subdomain): www, blog, shop.

When you type a URL in your browser, the DNS system resolves it starting from the invisible root and working down through the levels until it finds the correct server IP address.

To register a domain for your website and launch your project, elenlace.com lets you check availability, register your name, and set up hosting in one step.

Key Takeaways

  • A web domain has three main parts: subdomain, root, and extension (TLD).
  • The root is the name you register and what defines your online identity.
  • The extension identifies the category or country of the site; for businesses, .com or a local ccTLD are the most recommended.
  • Subdomains are free divisions you create yourself within your main domain.
  • Technically, domains are read from right to left according to the DNS hierarchy.

With these concepts clear, you are ready to choose and register your website domain with confidence. elenlace.com supports you from the search stage all the way through launching your online presence.

FAQ

What is the root of a domain?

The root — also called the Second-Level Domain (SLD) — is the central part of the domain that you choose and register: in mycompany.com, the root is mycompany. It is the most important asset because it defines your online identity.

Do subdomains cost extra money?

No. Subdomains are created from your hosting control panel (such as cPanel) at no additional cost. You only pay for the main domain once a year; subdomains are unlimited and free within that account.

What is the difference between a domain and a URL?

The domain is the site's name (mycompany.com). The URL is the full address that includes the protocol, the domain, and the path to a specific page: https://mycompany.com/contact. The domain is one component of the URL.

Does www matter for SEO?

Not directly. www is simply a conventional subdomain. What matters is that you choose one version (with or without www) as the canonical version and set up a 301 redirect from the other to avoid duplicate content. Most modern hosting servers handle this automatically.

Further reading

Other providers and guides worth comparing:

← All