Login to cPanel:
- Locate and click on the "Subdomains" icon under the "Domains" category.
- Enter the name of the subdomain and provide a Document Root. The Document Root is the folder within your main domain's root directory that will load when the subdomain is accessed. Additionally, the website you develop at subdomain.yourdomain.com can also be accessed via yourdomain.com/subdomain.
- Enter the required information to create the subdomain.
- Click the "Create" button, and the subdomain will be created.