Issue #0 - Download links
published onYou can turn a hyperlink into a download link by adding the download
attribute. Instead of navigating to the document, browsers prompt users to save the file to their disc.
<a href="myfile_hash5474n.pdf" download>
Annual Report (666 KB)
</a>
Additionally, you can specify a value for the attribute which will be used as the filename for the downloaded file.
<a href="myfile_hash5474n.pdf" download="report.pdf">
Annual Report (666 KB)
</a>
Resources
Did you enjoy this tip?
Sign up for the HTMHell newsletter and receive an HTML tip or trick every week via e-mail.