
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to create a download link with HTML?
To create a download link with HTML, the code is as follows −
Example
<!DOCTYPE html> <html> <body> <h1>Download Link example</h1> <a href="https://i.picsum.photos/id/225/800/800.jpg" download> <img src="https://i.picsum.photos/id/225/800/800.jpg" style="width: 300px;height: 300px;" > </a> <h2>Click on the image above to download it</h2> </head> <body>
Output
The above code will produce the following output −
- Related Articles
- How to create a bookmark link in HTML?
- How to create a link to send email with a subject in HTML?
- How to create HTML link that doesnt follow the link?
- How to create a link to send email in HTML?
- How to create a hyperlink to link another document in HTML?
- How to create a navigation bar with a centred link/logo with CSS?
- How do I create an HTML button that acts like a link?
- How to create a Bibliography with HTML?
- How to create a download progress bar in Tkinter?
- HTML download Attribute
- Create a link button with borders using CSS
- How to remove underline from a link in HTML?
- Create a button look like a link with Bootstrap
- How to link jQuery in HTML page?
- How to create a link from a text using JavaScript?

Advertisements