Difference between top level domain and second level domain in a website

A Domain Name consists of two or more words separated by a period.
For example : mydomain.com,
The first part ‘.com’ is called a top-level domain
The second part ‘mydomain’ is called a second-level domain.

Here the Top-Level domain is the suffix to the right of the dot (i.e. com) and the second-level domain (SLD) is the part of the domain to the left of this dot (i.e. mydomain).

What does TLD means???

TLD means Top Level Domain.
All domains have a TLD  i.e.  .net, .com, .org, .biz, .info, etc., portion of a domain name.
The term TLD refers to any (or all) of the top-level domain names.


You may also see references to Country Specific TLD’s.
Country specific domains are controlled by the country (or company authorized by the country) in which they refer. I.E.

    .uk TLD is for United Kingdom,
    .in TLD is for India.

Also more recently we have company specific TLD's

Example: In www.wikipedia.org , "org" is the Top level domain
In www.india.gov.in , "gov.in" is the Top level domain.


What is a second-level domain name???

A second-level domain name is the first level at which a domain name may be registered.
The TLD (.com,  etc) is the first level of a domain name but these cannot be registered to anyone.

Example: In www.wikipedia.org , “wikipedia” is second-level domain name.

Second-level domains can be divided into further domain levels.
For example: sportsillustrated.cnn.com. These third-level domains sometimes represent different computer servers within departments.

Third-level domain names do not require a separate registration.
The owner of the second-level domain name “owns” the third-level names, fourth-level
names and so forth. There is no limit to the “levels” of domain names.