Skip to content
Related Articles

Related Articles

HTML | download Attribute
  • Last Updated : 31 Jul, 2019

The HTML download Attribute is used to download the element when the user clicks on the hyperlink. It is used only when the href attribute is set. The downloaded file name will be the value of the attribute. The value of the attribute will be the name of the downloaded file. It the value is removed then original filename used.

Uses: It is used in <a> and<area> Element.


<Element download="filename">

Below Example illustrates the use of download attribute in anchor Element.

<!DOCTYPE html>
        HTML a download Attribute
    <p>Click on image to download
            <a href="
                <img src=


Supported Browsers: The browsers supported by download Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :