Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For some reason, when I type HTML into TextEdit and save it as an HTML document, and I load it, I see all the text, unformatted, including the tags. How would I fix this?

share|improve this question
"load it" into what? Safari? – sblair May 16 '11 at 16:19
Could you post the code you are using? – Jannemans May 16 '11 at 16:20
Firefox. And I's just <html> <body> Test </body </html> – JShoe May 16 '11 at 16:23
up vote 6 down vote accepted

You need to click "Make Plain Text" in the "Format" menu of TextEdit and then save the file with the extension ".html"

share|improve this answer
Thanks! It worked! – JShoe May 16 '11 at 16:30
Now when I try to open it in text edit, it appears all black. I can't edit it after saving. – JShoe May 16 '11 at 17:15
Not 100% sure, but I'm guessing that TextEdit is trying to edit the html in WYSIWYG mode ("rich text mode"). There may be some way to force it to go one way or the other, but I'm not sure how. Personally, I'd recommend using something like TextWrangler. – Nathan Grigg May 18 '11 at 20:04

Try opening it with safari, or your current web browser. This can probally be done by clicking file>open (within the browser).

Here is a list of well known HTML editors designed specifically for macs. has a list of software that is known for working great with

share|improve this answer
I'd really like to just edit this in textedit and open it in firefox. Even opening it from within firefox won't work. – JShoe May 16 '11 at 16:26
Dreamweaver, Komodo Edit, CS5, Aptana Studio, NetBeans, Bluefish, Eclipse, (skEdit) and Seamonkey - all hand-crafted for OS X and great replacements for someone using TextEdit to edit HTML. – user495470 May 17 '11 at 14:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .