HTML Download Link


How to write download link in HTML.

Download link is a link that is used to download a file from the server to the browser's directory on the local disk.

The download link code is written as:

<a href="test_file.zip" download>Download File</a>

The code will create this link:

Download File

The test file should be on the web server.

The code has the following parts:

  • <a> is the link tag.
  • href attribute sets the file to download.
  • Download File is the text of the link.
  • </a> is the link end tag.

 


See also


HTML LINKS
CONTACT