Tuesday, August 16, 2011

HTML Not Rendering Properly at Localhost

I use a Mac. I wanted to test out some changes to a website before uploading the edited documents, so I saved a copy of the site locally to my MAMP installation (MAMP is a Mac version of WAMP, which is Windows/Apache/MySQL/PHP rolled into one). I edited the page using TextEdit and tried to view it locally in my browser. It showed the actual content of the HTML file. I checked the file extension and everything was fine. Other html files I'd created previously also worked properly.

Turns out that if you create an HTML file using TextEdit, you have to go into the Format menu and select the option "Make Plain Text". 'Nuff said.

No comments:

Post a Comment