To set the name of the file downloaded from the browser with HTML, we set the download
attribute.
For instance, we write
<a href="path/to/file" download="renamed.txt">Download</a>
to set the download
attribute to the name of the downloaded file.