How to manipulate your anchor tag for direct downloads.

How to manipulate your anchor tag for direct downloads.

This is a very short story, most of us have been using the anchor tag;

<a></a>

Without knowing that you can actually customize the anchor tag if you want to directly download a file by clicking the link element on your browser, so here is an example.

 <a download href="{link}">Download</a>

so adding the

download

to the anchor tag lets you download files directly to your computer, below is an example.

anchor_link.png