download
Summary
Specifies that the target item is to be downloaded for offline viewing.
Applies to | [/html/elements/a](/html/elements/a) |
---|
Examples
<!doctype html>
<title>Download attribute demo</title>
<!-- With the download attribute set and having a value the browser will attempt to save the file as the attribute name, overriding the default resource name of "video.mp4". -->
<a href="http://example.com/path/to/video.mp4" download="Web Platform Introduction.mp4">Download the WPD Introduction Video</a>
Related specifications
- HTML5
- Candidate Recommendation