Browser Shows Plain Text Instead Of Html In Mac
My First Heading
I wrote it and saved it in my desktop wiSolution 1:
The problem was that I wrote the HTML document with "Text Edit" application, and it saved the file with .rtf
extension, that is not plain text, so changing the name of file to hello.html
didn't change anything.
there are two ways to fix this problem:
1) if you insist on using "Text Edit" you should go to text edit->preferences
and tick the plain text
at top of the page, then when you save something, it is saved as plain text
2) you can use some text editor, like lime edit
Solution 2:
The most likely reason is that you used a WYSIWYG editor and saved the document as HTML.
This created an HTML representation of the HTML source code you typed.
Use a text editor instead. I'm fond of Sublime Edit 2.
Solution 3:
Download install "TextWrangler" (for mac) paste your html content to a new file in it and save with .html link. Dont use TextEdit.
Solution 4:
If you open the file using a basic text editor (like nano from the terminal), you'll probably see there's a lot of additional lines added to your basic HTML code. That's what happened to me.
I removed all the lines except what I wanted and it finally rendered correctly.
Solution 5:
I've had the same issue in TextEdit. The resolution is - go to "Format", then "Make plain text". Save the document and open it again in browser. It had worked in my case. Hope it will work for you too.
Post a Comment for "Browser Shows Plain Text Instead Of Html In Mac"