this is the code i wrote:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title</title>
</head>
<body>
<a href="test.txt" download="hi">Click to download!</a>
</body>
</html>
when I click on the text I it doesnt download the file and it only previews it instead of downloading Can you write me a proper code ? thanks