
Sub-domains can point to different sections of your website. In order to create a subdomain in your cpanel account, follow the next steps.
1. Log into your cPanel >> Domains section >> Domains
For cPanel Basic Theme:

2.Click on Create A New Domain:
For cpanel Retro Theme:

The Sub-domains menu can be quickly accessed via cPanel shortcut in the Gotmyhost account.
3. Enter the following details for your subdomain:
Sub-domain: the name of your Sub-domain
Domain: choose the domain name you wish to create sub-domain for from this drop-down menu
Document Root: the root directory for your sub-domain (for example, it can be /public_html/sub-domain)
4. Click on Submit And Create Another:
For cpanel Basic Theme:

For cpanel Retro Theme:
NOTE: the newly created sub-domain should be available online within 5-10 minutes. However, it may take up to 30-40 minutes for the newly created record to fully propagate world-wide.
You can also create a wildcard sub-domain. Wildcard sub-domains allow you to point all the sub-domains (existing and non-existing ones) to a specific folder in your account.
It means that if you enter any sub-domain 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.
That’s it!
To change the cPanel password