The subdomain is a basically a domain. By its name, that is clear that this is a subpart of the domain. we call it domain or simply call it main domain. But when adding other versions of your website like forum.example.com, en.example.com, ask.example.com these domains are called subdomain.
This is part of blogging where you can create subdomain with your main domain.