Jump to: navigation, search

HTML link to text file

From w3cyberlearnings

Contents

HTML - Link to text file

Hyperlink to open a text file.

Text File (myfruits.txt)

Apple, Banana, Orange

Example 1 TRY-IT

<html>
<head>
<title>Text File</title>
</head>
<body>
<a href="myfruits.txt">Link to fruits list</a>
</body>
</html>

Output

Html link textfile 1.png

Example 2: open in the same window

<html>
<head>
<title>Text File</title>
</head>
<body>
<a href="myfruits.txt" target="_self">Link to fruits list</a>
</body>
</html>

Related Link



Navigation
Web
SQL
MISC
References