Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

twistedwrister

macrumors newbie
Original poster
Feb 13, 2008
8
0
Hey guys for one of my media classes I have to make a very simple webpage. I thought I could just plug the html into text edit, save it as an html file, then open it with Safari. When I did that I still just saw the html text. Anyone know what I'm doing wrong?
 
If you want to do it through text edit you just have to set it to plain text mode instead of rtf mode.
 
I had this same problem long ago when I first used TextEdit but I see now that you've fixed the problem by using a different program. But out of curiosity was TextEdit saving your files with the correct extension, i.e. was there an "html" extension? It's just that in the preferences there's an option that says "Add .txt extension to plain text files" which may be on by default.

Also when viewing HTML files in TextEdit you'll have to untick the "Ignore rich text commands in HTML files" if you wish to view the code without it being automatically rendered. Also as motulist and dejo have said make sure it's saved as plain text.

I've written HTML code in TextEdit before so I know it's possible to have working web pages using it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.