This HTML example demonstrates how to create a download link to download files. The second link renames the file to EcclesiastesChapter3.txt.
<!doctype html>
<html>
<head>
<title>XoaX.net's HTML</title>
</head>
<body>
<p>Click on the link to download the text file:<p>
<a href="Ecclesiastes.txt" download>Ecclesiastes Chapter 3</a><br />
<a href="Ecclesiastes.txt" download="EcclesiastesChapter3">Ecclesiastes Chapter 3 (named file)</a>
</body>
</html>© 20072025 XoaX.net LLC. All rights reserved.