Subdomains can point to different sections of your website. In order to create a subdomain in your cPanel account, follow the next steps.
Subdomain: the name of your subdomain
Domain: choose the domain name you wish to create subdomain for from this drop-down menu
Document Root: the root directory for your subdomain (for example, it can be /public_html/subdomain)
You can also create a wildcard subdomain. Wildcard subdomains allow you to point all the subdomains (existing and non-existing ones) to a specific folder in your account.
It means that if you enter any subdomain in your browser (for example, test.domain.com – not existing, or blog.domain.com – existing), it will show the same content that you uploaded to the folder for the wildcard subdomain.