0

i am working on a project in which i have to make a webpage of photographs . i want to download image in a tag but when i click in a tag it open the image instead downloading . what can .

<a href="ali.gpj" title="ali"> pleas download image</a>
</body>
karim
  • 25
  • 8
  • This might be useful: https://stackoverflow.com/questions/49736214/force-a-download-to-download-image-instead-of-opening-url-link-to-image – apaatsio Oct 11 '20 at 23:46
  • Does this answer your question? [href image link download on click](https://stackoverflow.com/questions/2408146/href-image-link-download-on-click) – JacoSolari Oct 12 '20 at 09:34

1 Answers1

0

when you want to download image or file in link a you should put download in a tag.

<a href="ali.gpj" title="ali"  download> pleas download image</a>
karim
  • 25
  • 8