<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									How to download a file using HTML - Front-End languages				            </title>
            <link>https://discuss.codewithbishal.com/front-end/how-to-download-a-file-using-html/</link>
            <description>Discuss Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 29 Apr 2026 10:06:16 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Answer to: How to download a file using HTML</title>
                        <link>https://discuss.codewithbishal.com/front-end/how-to-download-a-file-using-html/#post-7</link>
                        <pubDate>Wed, 05 May 2021 13:49:21 +0000</pubDate>
                        <description><![CDATA[HTML Download attribute
The HTML download attribute is used to download any file.
&lt;a href=&quot;&quot; download&gt;Download a file&lt;/a&gt;
This will download the particular file given in the [...]]></description>
                        <content:encoded><![CDATA[<p style="text-align: center"><span style="text-decoration: underline;font-size: 18pt"><strong>HTML Download attribute</strong></span></p>
<p>The HTML download attribute is used to download any file.</p>
<pre contenteditable="false">&lt;a href="" download&gt;Download a file&lt;/a&gt;</pre>
<p>This will download the particular file given in the  attribute.</p>
<p>For example: </p>
<pre contenteditable="false">&lt;a href="https://discuss.codewithbishal.com/wp-content/uploads/2021/05/pexels-michael-block-3225517.jpg" download&gt;Download the picture&lt;/a&gt;</pre>
<p>the above code will be rendered by the browser as:</p>
<p><a href="https://discuss.codewithbishal.com/wp-content/uploads/2021/05/pexels-michael-block-3225517.jpg" download="">Download the picture as JPG</a></p>
<p>If you want to download the same file with other extensions like .jpg, .png, .jpeg, and with a custom name; you can easily achieve this by the below code:</p>
<pre contenteditable="false">&lt;a href="https://discuss.codewithbishal.com/wp-content/uploads/2021/05/pexels-michael-block-3225517.jpg" download="Picture.jpeg"&gt;Download the picture as PDF&lt;/a&gt;</pre>
<p>Which will be rendered by the browser as:</p>
<p> <a href="https://discuss.codewithbishal.com/wp-content/uploads/2021/05/pexels-michael-block-3225517.jpg" download="Picture.jpeg">Download the picture as JPEG</a></p>
<p>Similarly, </p>
<pre contenteditable="false">&lt;a href="https://discuss.codewithbishal.com/wp-content/uploads/2021/05/pexels-michael-block-3225517.jpg" download="Picture.png"&gt;Download the picture as PNG&lt;/a&gt;</pre>
<p>Will be rendered by the browser as:</p>
<p><a href="https://discuss.codewithbishal.com/wp-content/uploads/2021/05/pexels-michael-block-3225517.jpg" download="Picture.png">Download the picture as PNG</a> </p>
<p><span>Photo by </span><strong><a href="https://www.pexels.com/@michael-block-1691617?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels" target="_blank" rel="noopener noreferrer">Michael Block</a></strong><span> from </span><strong><a href="https://www.pexels.com/photo/photo-of-stream-during-daytime-3225517/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels" target="_blank" rel="noopener noreferrer">Pexels</a></strong></p>]]></content:encoded>
						                            <category domain="https://discuss.codewithbishal.com/front-end/">Front-End languages</category>                        <dc:creator>CodeWithBishal-admin</dc:creator>
                        <guid isPermaLink="true">https://discuss.codewithbishal.com/front-end/how-to-download-a-file-using-html/#post-7</guid>
                    </item>
				                    <item>
                        <title>How to download a file using HTML</title>
                        <link>https://discuss.codewithbishal.com/front-end/how-to-download-a-file-using-html/#post-6</link>
                        <pubDate>Wed, 05 May 2021 13:02:41 +0000</pubDate>
                        <description><![CDATA[How to download a file using HTML]]></description>
                        <content:encoded><![CDATA[<p>How to download a file using HTML</p>]]></content:encoded>
						                            <category domain="https://discuss.codewithbishal.com/front-end/">Front-End languages</category>                        <dc:creator>CodeWithBishal-admin</dc:creator>
                        <guid isPermaLink="true">https://discuss.codewithbishal.com/front-end/how-to-download-a-file-using-html/#post-6</guid>
                    </item>
							        </channel>
        </rss>
		