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:
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 link
- HTML anchor link
- HTML button link
- HTML image link
- HTML link color
- HTML mailto link
- HTML new window link
HTML LINKS
- Anchor link
- Button link
- Download link
- Email link
- Image link
- Javascript link
- Link color
- New window link
- Text link