Hi Sajid,
To remove .html extension from url, you have to follow below steps.
Log in to cPanel account.
In the Files section, click on the File Manager icon.
Click on the Settings Button in the top right corner.
If you want to make changes in the Primary Domain then Click on the radio button next to the Web Root. If changes are to be made on Other Domains, then Click the dropdown menu and find the domain in which changes are to be made.
Remember to check the checkbox next to Show Hidden Files. Now click the Save Button to return to the File Manager window.
Now you are in the Root Folder of the domain which you have selected to make changes. Search for the .htaccess file and right-click on it. Click on the Edit option in the menu. You can now add code to the .htaccess file.
Add the following code inside the .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC, L]
Reference:
Remove .html extension from URL