To create a Subdomain, you need to Login to cPanel, click on Subdomain under Domains section.
Enter the desired prefix in the Subdomain text box.
Select the desired main domain from the menu.
Enter the home directory for the subdomain in the Document Root text box.
Note: home directory for the subdomain contains the files that pertain to the subdomain.