<a download="custom-filename.jpg" href="/path/to/image" title="ImageName">
<img alt="ImageName" src="/path/to/image">
</a>
It’s not yet fully supported caniuse, but you can use with modernizr (under Non-core detects) to check the support of the browser.
More Related Contents:
- download webpage and dependencies, including css images [closed]
- Image inside div has extra space below the image
- What is the effect of encoding an image in base64?
- CSS Display an Image Resized and Cropped
- How can I create download link in HTML?
- HTML5 Canvas Rotate Image
- embedding image in html email
- href syntax : is it okay to have space in file name
- Removing whitespace between HTML elements when using line breaks
- Is it possible to put binary image data into html markup and then get the image displayed as usual in any browser?
- CSS image resize issue
- Floating an image to the bottom right with text wrapping around
- href=”tel:” and mobile numbers
- Scale image to fit a bounding box
- How does one use the onerror attribute of an img element
- How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?
- How can I resize an image to a percentage of itself with CSS?
- HTML : Is there any way to show images in a textarea?
- Make anchor links refer to the current page when using
- CSS align images and text on same line
- How to auto-resize an image while maintaining aspect ratio
- Href without http(s) prefix
- The right way of setting when it’s a local file
- Display text on MouseOver for image in html
- How much faster is it to use inline/base64 images for a web site than just linking to the hard file?
- How to place Text and an Image next to each other in HTML?
- Which versions of IE support PNG favicons?
- Images not displaying in Github Pages?
- Setting the image `width: 0` hides it, while `width: 0%` makes it occupy the space, too
- Is it possible to set a src attribute of an img tag in CSS?