How to simply add a download link for a PDF file to your website!

apples

Registered
Nov 1, 2019
1
0
0
Victoria
cPanel Access Level
Website Owner
Really struggling with this basic task. I have set up my C-Panel and have trialled uploading my PDF in the pubic.html folder, however I cannot seem to just get this file to be a downloadable link on my website. I am using HTML editor to try add it but it doesn't have a PDF button. The closest I have gotten to having it download, the screen said the IP address cannot be found.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hello,


I'm not sure why you would need a "pdf" button for this. This is a coding issue. The very simple html for this would be:

HTML:
<a href="yourfile.pdf" download> /path/to/yourfilename </a>