download
Widely available since 2022-03-19
The download
attribute for <a>
elements loads the target URL as a file to be saved, instead of navigating to it. An optional attribute value sets a default file name.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 14 Released on 2011-09-16
- Chrome Android 18 Released on 2012-06-27
- Edge 18 Released on 2018-10-02
- Firefox 20 Released on 2013-04-02
- Firefox for Android 20 Released on 2013-04-02
- Safari 10.1 Released on 2017-03-27
- Safari on iOS 13 Released on 2019-09-19
Specifications
- HTML Standard (#attr-hyperlink-download), from HTML Workstream (WHATWG).