YouTip LogoYouTip

Att A Download

## HTML download Attribute Example Download file: W3Schools Try it yourself Β» --- ## Browser Support | Element | Chrome | IE | Firefox | Safari | Opera | |---------|--------|-----|---------|--------|-------| | `` | 14.0 | 13.0 | 20.0 | 10.1 | 15.0 | **Note:** Internet Explorer and Edge do not support the download attribute. --- ## Definition and Usage The `download` attribute specifies that the target file will be downloaded when the user clicks on the hyperlink. **Note:** * This attribute can optionally set a value to specify the name of the downloaded file (non-ASCII characters are not allowed): ```html W3Schools ``` * This attribute only works for same-origin URLs. --- ## Differences Between HTML 4.01 and HTML5 The `download` attribute is new in HTML5. --- ## Attribute Values | Value | Description | |---|---| | *filename* | Specifies the name of the downloaded file | --- ## More Examples Example Set an image as a downloadable file (using the filename attribute):

Click on the image to download it:

W3Schools

Note: The filename attribute /images/myw3schoolsimage.jpg does not allow non-ASCII characters.<

← Att A HrefAtt A Coords β†’