Text/Edit Not working for HTML

Discussion in 'Web Design and Development' started by AFPoster, Jun 8, 2011.

  1. AFPoster macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC
    #1
    I basically wrote this line of code in Text/Edit:
    Code:
    <html>
    <head></head>
    <body>hello world</body>
    </html>
    When I save as HTML and open it in Chrome, FireFox or Safari it just shows the code and not hello world. Any ideas? Also TextWrangler I can do the same code and it works perfectly. I'd just rather use Text/Edit if possible.
     
  2. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #2
    Don't use TextEdit, it's not really the best for that.

    As for that code, the reason it's not working is probably that you have TextEdit still in Rich Text Mode. Go to Format -> Make Plain Text, and make sure you save it with the .html extension.

    jW
     
  3. AFPoster thread starter macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC

Share This Page