html how to open file on text in html code example
Example 1: setup html webpage
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--optional css --><link rel="stylesheet" href="style.css" />
<title>Document</title>
</head>
<body>
</body>
</html>
Example 2: html get text from file
<embed src="file.txt"> // This will show the text contained in file.txt in the page