Download attribute in CSS
Sample:
Code:
<style>
[download]::after {
content: "";
background: url('/images/demos/download.svg') no-repeat center;
block-size: 1em;
display: inline-block;
inline-size: 1em;
}
</style>
<p>
<!-- Download link to a pdf -->
<a href="/report.pdf" download>
Download the sustainability report 2022 (PDF, 29MB)
</a>
</p>