Core HTML

A Download Link

This HTML example demonstrates how to create a download link to download files. The second link renames the file to EcclesiastesChapter3.txt.

DownloadLink.html

<!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>
 

Output

 
 

© 2007–2025 XoaX.net LLC. All rights reserved.