HTML <a> download Attribute
Example
<a href="img-boy.jpg" download>
Meaning
The download the link instead of navigating it.
Tips and Notes:
- download only works for same-origin URLs, or the blob: and data: schemes.
- The download attribute is not supported in IE or Edge (prior version 18), or in Safari (prior version 10.1).
- Chrome 65+ and Firefox only support same-origin download links.
Standard Syntax
<a download="fileName">
Advertisement
Attribute Values
| Value | Description |
|---|---|
| download | (optional)fileName Can be used with or without a value |