How to Make a Download Button!
h
PowerCoder (682)

This will be a simple and useful tutorial on how to add download buttons.

In your HTML file make an anchor tag:

<a>Download</a>

Then, add the content you want to download in the href attribute:

<a href="test.png">Download</a>

Lastly, to add a name to the file that the user is going to download, add the name in the download attribute:

<a href="test.png" download="Test-file">Download</a>

Now, if you click on our download button, it should download the file.

You are viewing a single comment. View All