Jump to content
Killersites Forums

html problem


Guest sharer09

Recommended Posts

Guest sharer09

When I make my text file on notepad then try and save it as an html and open it through my computer again I cannot change the html code, it just pops up in a browser window as the output how do I make it so I can go back into the code and change stuff? When I save it as html and not as txt it just opens in an internet browser as the output of my code but then how do I get to my source code to change it?

 

Also same thing happens when I download an html file off the internet it won't give me the actual code how do I fix this?

 

Thank you

Link to post
Share on other sites

An HTML file needs to be saved as .html or .htm - not as txt.

 

You cannot change anything that shows up in your browser. To make changes to your html code. you need to open the file in notepad again, change what you want, save - and then you'll see the change in your browser (after a refresh).

 

If you open whatever file you download from the internet with notepad, you'll see the code and can make changes.

Link to post
Share on other sites

What Andrea is saying is that you can't double-click on an HTML file to open it in Notepad, as Windows opens .htm & .html files in a browser as a default setting. The same way it opens .doc in Word, not in Notepad even though both are essentially text editors.

From Explorer, you could right-click and say Open With ... then select Notepad.

Or as Andrea said, start Notepad first and then Open, pick the folder, then select All Files to display the .html files, then click the file you want to open.

hth

Link to post
Share on other sites
  • 2 months later...

I'd recommend using Notepad++, it just makes things easier.

Also, when u save a file in notepad, you're better off typing "name.html" including the quotes.

If you install notepad++, you can simply right click on your html file and select "Edit with Notepad++".

 

Alternatively, open notepad and drag your html file icon into the window to open it.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...