Create an HTML file. In the TextEdit app on your Mac, choose File New, then choose Format Make Plain Text. Enter the HTML code. Choose File Save, type a name followed by the extension.html (for example, enter index.html), then click Save. When prompted about the extension to use, click “Use.html.”. Mar 16, 2021 The basic way to open a file on the Mac — and on Windows as well — is to double-click a file. By default, it opens with the application that is assigned to work with its file type; so, if you have Microsoft Office on your Mac, a.doc file opens in Word, and an.xls file opens in Excel.
May 4, 2013 11:51 PM
Great guide, thanks John.
Just a note, in case anyone has the same issue. At first I couldn't get this to work. I tried logging out and back in (still no joy), then restarting the mac (still no joy).
Try doing both of those first. However, if, like me, you still can't get the local host site to load, try the following: You should find a file at /Library/WebServer/Documents/index.html.en . This contains the text 'It works!' referred to in the post. What I did was duplicate that file in the same folder and changed the duplicate's name to 'index.html', leaving the original in situ.
Open Html File In Microsoft Edge
Both local and user sites then loaded. After which, I was able to delete the duplicated file and everything now works without issue. Just to be clear, leave the original file index.html.en where it is, untouched and unharmed throughout this step.
Open Html File In Email
Not sure why I had to take this mysterious detour - probably something local to my machine, but if you're having trouble after following the guide above, see if it helps.
May 4, 2013 11:51 PM