為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I view my .HTML file as a website, not in a text-only format?

  • 1 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 DaveRo

more options

I'm learning to use basic HTML. I wrote a short file in TextEdit and opened it using Firefox "File" --> "Open". It loaded the page, but instead of reading the HTML code, it left it as text, including the angle brackets and commands. I would like to view my page as a normal site, with working italics, bolds, hyperlinks, etc. Is it possible to do this with Firefox? If so, how?

This happened

Every time Firefox opened

== I tried to read a simple .HTML file

I'm learning to use basic HTML. I wrote a short file in TextEdit and opened it using Firefox "File" --> "Open". It loaded the page, but instead of reading the HTML code, it left it as text, including the angle brackets and commands. I would like to view my page as a normal site, with working italics, bolds, hyperlinks, etc. Is it possible to do this with Firefox? If so, how? == This happened == Every time Firefox opened == I tried to read a simple .HTML file

所有回覆 (1)

more options

It sounds as if the file is not recognised by Firefox as an html file - it thinks it's a text file.

I don't know MACs but here on Linux that has nothing to do with whether the file has an 'html' extension. Does the file start with an <html> tag? (After <!DOCTYPE - if you have included that - it's optional.)

If so I suggest that you create the file not with a text editor but with a program that is designed to produce html files. You probably have one on your machine already but if not try Bluefish.

A MAC user could give a better answer.

Good luck.