+ 1
I wrote my first htm code on a notepad and saved it as .html but it doesnt display on my browser,can u suggest me solutions?
12 Answers
+ 7
Did you choose "All Files (*.*)" from the File type dropdown when saving the file? I had to ask, cause I've experienced Notepad saving test.html as test.html.txt.
Unless the File type was *.*, Notepad adds .txt extension no matter whether you had already specified a file extension.
Additional tips (quoted from)
https://stackoverflow.com/a/7646554
"Just put some double quotes around your filename, and Notepad will save it without adding .txt. Select "All Files" in the file content box will stop Notepad adding .txt, too."
(Edited)
+ 3
Ipang
But when we save text file as abc.html then it doesn't add .txt
I have checked in Windows 10
+ 3
Ipang
Yes it was in old windows but windows 8 and 10 don't add .txt
+ 3
I did the same thing when i learned check and see if you have .html in the title and right click the file and click open with browser also i recomend vs code for pc
+ 2
Could you please post your code here, state what browser you are using, and describe what output you are getting (just a white screen in browser, or some sort of an error)?
+ 2
Ipang
But funny thing is that when I try to save file with .php extension then it add .txt
+ 2
My suggest, you can use visual studio code and add live server so you can see changing code when you writing meanwhile
+ 1
#Ipang your suggestion worked thankyou🤗
#Aleksei you too
+ 1
AJ
I don't know how it's like in Windows 10, I experienced such funny events from Windows XP to Windows 7. Always the same ...
- 2
You can save any html file....jus put .html at the end of title page eg..
Sololearn.html always put html at the end and dont forget the dot ( . ) 👍