There are a variety of free HTML editing programs. Here are 2 to start with.
You can also use notepad on the PC and TextEdit on the mac.
In TextEdit, make sure that you are using a plaintext file (format–>make plain text)
Also in the preferences and set it up like this photo.