Working on HTML Pages in TextEdit

OPEN TEXTEDIT
Hard Drive > Applications > TextEdit

Go to TextEdit > Preferences
on New Documents under Format
choose PLAIN TEXT

on Open and Save under “When opening a file”
check IGNORE RICH TEXT COMMANDS IN HTML FILES