How to Make a Download Button!
PowerCoder (682)

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

In your HTML file make an anchor tag:


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
PowerCoder (682)

@TheMemeManHimse Oh. Está bem. Basta falar inglês nesta plataforma. Infelizmente, ninguém sabe português aqui.