Skip to content Skip to sidebar Skip to footer

When Opening An Html File On Browser, I See The Source Code

I am trying to open a basic 'hello world' html file on a browser (chrome/explorer). However, the browser displays the code itself rather than the expected result. What can be the p

Solution 1:

your html is fine my bet is you saved it as index.html.txt(on accident) Could you please check for that :)

Solution 2:

If you are using a text editor (such as Notepad), Save As... and save it with the formatting as filename.html. If you don't specify the file type when saving, Notepad will default to adding the text file extension.

Post a Comment for "When Opening An Html File On Browser, I See The Source Code"