Let me rephrase this- How can i open an html file without seeing the code?

2008-06-24 8:14 pm
I understand now that html is a code, not a file. but when i save it, and go to the internet, it doesnt do anything. how can i open it?

回答 (6)

2008-06-24 8:22 pm
✔ 最佳答案
You should be able to open it in just IE or FF. With your browser open, click on FILE >> OPEN and then navigate to the file. When you have found it, select the file and click "Open".

The webpage should then be displayed.
2008-06-25 3:54 pm
Hi

There are some missing explanation in your question but i will try to cover all aspects.

Yes you got it correct, HTML is a code that is used on websites. So let's assume that you have saved a file with an HTML extension.

If you right click on it and select "open with", you will get a list of programs that you can open it with. One of which should be Internet Explorer or Firefox. If you open it this way and see a blank page, it could mean that the code is not meant to display anything, or it refers to other files like images or so that did not come with it when you downloaded it.
Another reason could be that it contains a script that does not work unless the file is located on a web server.
The last reason could be that the file is empty or did not download correctly.

You can try another thing but don't get confused. Try right click then "open with" and select notepad. If you see an empty page, then the file is empty. If you see a loads of codes there it means there is something and the first reasons apply.

Hope this helps
2008-06-24 9:02 pm
When you edit and save it, it saves to your hard drive. As such, you can browse it without being connected to the internet (in your browser File->Open and either enter the path you saved it to or use the browse button to look for it on your hard drive). You need a web server to upload to before it would be viewable via the net.
2008-06-24 8:30 pm
1. Save your file as .htm or .html
2. Upload the file to the server
3. Open browser and open the page on the Internet

You should see the page on your browser, if all you see are codes, then there's probably something wrong with your codes, or you didn't save the file as .htm or .html.

What is the URL of the page on the Internet? It'll be easier to tell you what's wrong with it if I can see it online.
2008-06-24 8:23 pm
If you double-click on the html file, it should open in a browser. If you're doing that and not seeing anything, there's probably errors in the code.
2008-06-24 8:23 pm
This is what you do: Save your HTML source code as an html file (with the .html extension), then you right click on it, from their click 'open with' and then chose which browser you want to open it with. If this does not work then your source code has bugs.


收錄日期: 2021-05-03 14:03:13
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080624121450AACYV6E

檢視 Wayback Machine 備份