How to HTML Download Link ?

Downloading files from your website is a great way to offer information that people can view offline, rather than view in the browser window. With the help of an HTML download link, user can download any files from your website to their home computer.

<a href="www.yourwebsite.com/files/abcd.txt">Download Text File</a>

How to Make a File Downloadable from Your Website ?

Download links are created using the HTML anchor tag < a > … < /a >, which is the same tag used for creating links to another web page. The only difference is that you have to set the HREF property equal to your download file, rather than specifying a web URL.

HTML Source Code :

<html>
  <body>
    <a href="www.yourwebsite.com/files/abcd.pdf">Download PDF</a>
  </body>
</html>

User can Right click or option-click the link and choose “Save As…” to download this file.

Using this download link , you can provide any type of files like pdf, mp3, text, zip etc. download from your website.

How to create an mp3 download link in HTML ?

<a href="www.yourwebsite.com/files/abcd.mp3">Download MP3</a>

How to create a zip file download link in HTML ?

<a href="www.yourwebsite.com/files/abcd.zip">Download ZIP</a>

Note : Before you creating the download link , you have to upload the file in the specified location of the download link.