Last active
November 15, 2019 23:18
-
-
Save shrinkray/609f6ad8a34cb0fc10d8ef5e2c74cae8 to your computer and use it in GitHub Desktop.
How to set a link to download a document
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| In this link, use the HTML download attribute to specify that the | |
| target will be downloaded when a user clicks on the hyperlink. | |
| The download attribute is only used if the href attribute is set. | |
| --> | |
| <a class="btn-conversion blue3 d-flex" | |
| href="https://www.rootinc.com/pdfs/Gary_Speaker_Sheet.pdf" | |
| download | |
| target="_blank">Get the Info!</a> | |
| <!-- | |
| On another project, I'd set download="https://.." | |
| But that may not work. | |
| --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment