+ 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?

2nd Oct 2021, 8:20 AM
Rio
10 odpowiedzi
+ 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)
2nd Oct 2021, 8:26 AM
Ipang
+ 3
Ipang But when we save text file as abc.html then it doesn't add .txt I have checked in Windows 10
2nd Oct 2021, 10:04 AM
A͢J
A͢J - avatar
+ 3
Ipang Yes it was in old windows but windows 8 and 10 don't add .txt
2nd Oct 2021, 10:28 AM
A͢J
A͢J - avatar
+ 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
3rd Oct 2021, 10:44 PM
Cube Sune
+ 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)?
2nd Oct 2021, 8:23 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 2
Ipang But funny thing is that when I try to save file with .php extension then it add .txt
2nd Oct 2021, 10:30 AM
A͢J
A͢J - avatar
+ 2
My suggest, you can use visual studio code and add live server so you can see changing code when you writing meanwhile
3rd Oct 2021, 8:59 PM
Hamza Akburak
Hamza Akburak - avatar
+ 1
#Ipang your suggestion worked thankyou🤗 #Aleksei you too
2nd Oct 2021, 9:09 AM
Rio
+ 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 ...
2nd Oct 2021, 10:21 AM
Ipang
- 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 ( . ) 👍
4th Oct 2021, 5:53 AM
RAJENDRA MAHABIR
RAJENDRA MAHABIR - avatar