In order to create a subdomain in your cPanel account :
Step 1 – Log in your cPanel
Step 2 – Navigate to the menu Subdomains under the Domains section
Step 3 – Enter the following details for your subdomain
Subdomain : The name of your subdomain. Choose the domain that you need to create a subdomain from the drop-down menu
Document Root : The root directory for your subdomain ( for example, it can be /public_html/subdomain )
Step 4 – Click on Create.