area download attribute
The download attribute on the area element:
- allows you to specify that the linked resource is to be downloaded instead of rendered in browser's window
- download is a specific attribute → can be applied ONLY on the next HTML5 elements: a, area
Warning: download attribute can be used only if href attribute is present on element.
Examples
<area | attribute | = | "value(s)" | > | Examples | ||
---|---|---|---|---|---|---|---|
3. | download | = | string | <href="x.php" alt="x" download="x.php"> |
Video demonstration area download attribute
HTML5 area download attribute Tutorial
min | video details |
---|---|
00:00 | video tutorial: download attribute on area element |
00:09 | download attribute allows you to specify that the linked resource is to be downloaded instead of rendered in browser's window |
00:15 | 1. download attribute absent → the linked resource: css.php is rendered in browser's window |
00:27 | 2. adding the download attribute → the linked resource css.php can be downloaded |
00:44 | downloading the resource |