Search code examples
htmltextedit

How to write html file with a text editor


I am trying to write my first html document. Here is the link to the reference.

I am using TextEdit on Max OSX 10.6 and after I save it (as an html file) it is opened by the browser by double clicking on it. However the source script text is shown instead of the html structure. What I am getting wrong?


Solution

  • You need to convert it to a plaintext document

    Click Format and then 'Make Plain Text', then make sure to save as .html