If you want to use TextEdit to edit HTML files, then you will need to change some default settings to ensure that your HTML files work correctly. This tutorial will walk you through the setting changes you will need to make.
Time: 1 minute
An Apple computer
Click on File and go to Preferences
In the Preferences box, choose Plain Text in the radial box.
Click on the Open and Save tab at the top of the Preferences box
Click the empty box next to Display HTML files as HTML Code instead of formatted text. Once clicked, the empty box will have a checkmark in it.
Close the Preferences box using the red X in the top left, and you are ready to go.