हाइपरलिंक पर क्लिक करने पर फ़ाइल डाउनलोड करने के लिए download एट्रिब्यूट का उपयोग करें। एट्रिब्यूट का मान डाउनलोड की जाने वाली फ़ाइल का नाम सेट करें, जैसे image।
उदाहरण
<!DOCTYPE html>
<html>
<body>
<h3>if statement in Java</h3>
<p>The following is an image explaining the concept if <b>if-statmement in Java</b> (Click to download):</p>
<a href="https://www.tutorialspoint.com/java/images/if_statement.jpg" download>
<img border="0" src="https://www.tutorialspoint.com/java/images/if_statement.jpg" alt="Java" width="400" height="450">
</a>
</body>
</html>
download एट्रिब्यूट बिना मान के भी उपयोग किया जा सकता है (तब मूल फ़ाइल नाम उपयोग होता है) या कस्टम फ़ाइल नाम के साथ: download="custom-name.jpg"।