Question: how to open html file?
Answer: In the TextEdit app on your Mac, choose TextEdit > Preferences, then click Open and Save. Select “Display HTML files as HTML code instead of formatted text.”