This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.



Specifies that the target item is to be downloaded for offline viewing.

Applies to [/html/elements/a](/html/elements/a)
If the download attribute is specified on the [anchor](/html/elements/a) or [area](/html/elements/area) elements, then the browser will attempt to download the item for viewing later. You can optionally give the attribute a value, which will then have the browser store that file with that filename overriding the resources default name.


<!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="" download="Web Platform Introduction.mp4">Download the WPD Introduction Video</a>

Related specifications

Candidate Recommendation