So how do you create a download a file link button? This is a simple html question that I see often but it isn’t answered much online. Most sites just assume the question refers to creating a link to a file so that’s all they explain.
To create a download link that pops up a dialog box asking the user to save the file, you would have to add the following attribute to your html link: download=”filename”
So the following html link
<a href=”your-link.pdf”>Download Here</a>
would be converted to the below
<a href=”your-link.pdf” download=”your-link.pdf”>Download Here</a>