John, thanks so much for your response. Here is what I have done so far to fix this problem. First, in TextEdit, I changed the Settings -> New Document -> Format to Plain Text. I was pretty sure that the Rich Text Format would mess up my code. I confirmed this by looking at the code using Safari -> Develop -> Show Page Source. Changing to Plain Text did not work and I got the same output (it wrapped up my code and simply displayed my code in Safari). Next, I renamed the file to MyCode.HTML. This also failed. Next, I changed the URL in Safari to File:///users/.../MyCode.HTML. No luck. Then, I tried HTTP://users/.../MyCode.HTML. The code still did not execute. As a workaround, I was thinking of coding directly in the Show Page Source pane, however, I'm not sure yet how to do that. Thanks again to your help with this problem.