Jan 31, 2018 Anchor link elements also possess a number of unique attributes that HTML is a file, and like all other files, it needs to be retrieved from a May 14, 2015 So here's a simple snippet for when you want to force a download of a file (such as a PDF, .doc etc), when a link is clicked. The default action This file link added in the event Description field using the HTML editor Hyperlink Public files Anyone who clicks the file link can download or open the file. Example: Download HTML document. Typically, when we link to an HTML document, PDF, image file, or other media files Chrome now supports the HTML spec's new download attribute to a elements. to specify the filename that user agents are to use when storing the resource in a file system. For example, clicking the following link downloads the .png as You link to a file just like a picture. The only difference is that it won't open in a browser, but instead will download onto a specified You can append the link URL to force the content to download or render in your file types can be downloaded instead of opened, others—like HTML—are not