HTML Basics

Discussion in 'Mac Basics and Help' started by twistedwrister, Feb 19, 2008.

  1. twistedwrister macrumors newbie

    Feb 13, 2008
    Hey guys for one of my media classes I have to make a very simple webpage. I thought I could just plug the html into text edit, save it as an html file, then open it with Safari. When I did that I still just saw the html text. Anyone know what I'm doing wrong?
  2. Hankster macrumors 68020


    Jan 30, 2008
    Washington DC
    It has to be coded correctly so the browser can read it. Do a search for HTML on
  3. twistedwrister thread starter macrumors newbie

    Feb 13, 2008
    It was coded correctly. I downloaded TextWrangler and then it worked no problem. Thanks.
  4. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Did you set TextEdit to plain text (Format > Make Plain Text)?
  5. motulist macrumors 601


    Dec 2, 2003
    If you want to do it through text edit you just have to set it to plain text mode instead of rtf mode.
  6. Neutral Gamer macrumors 6502a

    Neutral Gamer

    I had this same problem long ago when I first used TextEdit but I see now that you've fixed the problem by using a different program. But out of curiosity was TextEdit saving your files with the correct extension, i.e. was there an "html" extension? It's just that in the preferences there's an option that says "Add .txt extension to plain text files" which may be on by default.

    Also when viewing HTML files in TextEdit you'll have to untick the "Ignore rich text commands in HTML files" if you wish to view the code without it being automatically rendered. Also as motulist and dejo have said make sure it's saved as plain text.

    I've written HTML code in TextEdit before so I know it's possible to have working web pages using it.

Share This Page