HTML Download Attribute

In HTML, we can give links to images, buttons, files, and texts as well as links for downloading images, videos, or pdf files.

To give a download link in HTML, we use the download feature of the a tag.

HTML Download Attribute

<!-- Photo Download Link -->
<a href="photo.jpg" download>Download Photo</a>

<!-- Pdf Download Link -->
<a href="file.pdf" download>Download Pdf</a>

<!-- Music Download Link -->
<a href="music.pm3" donwload>Download Music</a>
Download Photo Download Pdf Download Music
79670cookie-checkHTML Download Attribute

Leave a Reply

Your email address will not be published. Required fields are marked *