HTML Basics

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

  1. twistedwrister macrumors newbie

    Joined:
    Feb 13, 2008
    #1
    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

    Hankster

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

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

    dejo

    Staff Member

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

    motulist

    Joined:
    Dec 2, 2003
    #5
    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

    #6
    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