The best html editor is one that keeps and maintains clean code. Unfortunately most html editors like dreamweaver, coffeecup, Microsoft Frontpage, Kompozer etc.. add unwanted html tags and code to your files.
This can easily cause issues and browser incompatibility, and make your code hard to maintain and a mess to clean up.
Using something like TextEdit on the Mac OS or Notepad on windows is the best way to write and modify your html code. It’s also the best free html editor. And It keeps your code nice and clean.
How to Modify HTML Files With TextEdit on Mac OS X?
On the Mac OS files with “.html” filename extensions will open with a web browser if you double click on them
In the finder window right click or control+click on the file name and select “Open With” and scroll down and select TextEdit.

If you want to open all of your “.html” files with TextEdit automatically then instead of selecting “Open With” select “Get Info” And click on “Open With” and select “TextEdit” from the drop-down menu. And then click on the “Change All” button.

Viewing the Code in TextEdit
When you open an html file what you’ll see in TextEdit as default may look like the html you would see in a browser. In order to view the actual html code you’ll need to change the prefrences on TextEdit. You only need to do this once.
In prefrences select the “Open and Save” tab. Check the following “Ignore rich text commands in Html files”.
Close TextEdit after you make your change and re-open your file. Now you should see all the html tags.
