HTML <area> download Attribute
Example
<img src="desk.jpg" usemap="#image-map">
<map name="image-map">
<area download="Computer" target="_blank" alt="Computer" title="Computer" href="computer.png" coords="112,31,285,246" shape="rect">
<area download="Cup" target="_blank" alt="Cup" title="Cup" href="cup.png" coords="327,212,31" shape="circle">
<area download="Just download" target="_blank" alt="Mobile" title="Mobile" href="mobile.png" coords="296,121,326,176" shape="rect">
<area download target="_blank" alt="Book" title="Book" href="book.png" coords="53,132,115,157,72,237,2,211" shape="poly">
</map>
Meaning
The download attribute download the link instead of navigating it.
Notes:
- There is no restrictions on allowed values
- The browser will automatically detect the correct file extension and add it to the file (.png, .pdf, .txt, etc.).
Standard Syntax
<area download="fileName">
Advertisement
Attribute Values
| Value | Description |
|---|---|
| download | (optional)fileName Can be used with or without a value |