Results 1 to 15 of 15

Thread: Html Problem

  1. #1

    the_macpanther's Avatar
    Member Since
    Jan 03, 2007
    Posts
    28
    Html Problem
    I can't seem to read my handcoded html files in firefox or safari. I am using osx 10.4.11 and when I open it in browsers all I get is the code, not the page.I use text edit, and open office.
    I've even been testing simple codes like
    <html>
    <body>
    Test
    </body>
    </html>
    it will show up like ^
    not like

    Test

    ...so it's not the code.

    Please help

  2. #2

    BlueMac's Avatar
    Member Since
    Sep 01, 2008
    Location
    Rhinebeck, NY
    Posts
    1,056
    Specs:
    20" iMac 2.66 GHz... Running 10.5.7
    You have to make it plain text, not rich text. So, go to Text Edit and go to Format. Click 'Make Plain Text'. This should help you're problem. If this still doesn't work, come back and tell us.

  3. #3

    the_macpanther's Avatar
    Member Since
    Jan 03, 2007
    Posts
    28
    I put it in HTML format, not rich text. It's still not working.

  4. #4

    BlueMac's Avatar
    Member Since
    Sep 01, 2008
    Location
    Rhinebeck, NY
    Posts
    1,056
    Specs:
    20" iMac 2.66 GHz... Running 10.5.7
    Quote Originally Posted by the_macpanther View Post
    I put it in HTML format, not rich text. It's still not working.

    Put it into PLAIN TEXT format.

  5. #5

    the_macpanther's Avatar
    Member Since
    Jan 03, 2007
    Posts
    28
    Ok, i did that and it kind of works, everywhere there is a space there is an E with a ^ above it. How do I fix that?

  6. #6

    BlueMac's Avatar
    Member Since
    Sep 01, 2008
    Location
    Rhinebeck, NY
    Posts
    1,056
    Specs:
    20" iMac 2.66 GHz... Running 10.5.7
    Quote Originally Posted by the_macpanther View Post
    Ok, i did that and it kind of works, everywhere there is a space there is an E with a ^ above it. How do I fix that?
    I don't know what you mean. Could you take a screenshot so I can see what you are talking about?

  7. #7

    bitshiftr's Avatar
    Member Since
    Sep 13, 2008
    Location
    127.0.0.1
    Posts
    6
    $5 says it's something borked in the header...
    Resident Pedobear

  8. #8

    BlueMac's Avatar
    Member Since
    Sep 01, 2008
    Location
    Rhinebeck, NY
    Posts
    1,056
    Specs:
    20" iMac 2.66 GHz... Running 10.5.7
    Quote Originally Posted by bitshiftr View Post
    $5 says it's something borked in the header...
    I''ll see you, and raise it ten......

  9. #9

    the_macpanther's Avatar
    Member Since
    Jan 03, 2007
    Posts
    28
    here it is...
    Attached Images Attached Images

  10. #10

    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    Why are you trying to hand code, why not use Komposer until you get more of a handle on the code?

  11. #11

    the_macpanther's Avatar
    Member Since
    Jan 03, 2007
    Posts
    28
    i like to code it by myself. The code is just fine. it's just something with text edit. but i'll try komposer and see if that does it.

  12. #12

    Lewwy's Avatar
    Member Since
    May 21, 2007
    Posts
    198
    Specs:
    15" Macbook Pro, 2.16gz, 2gb RAM || 20" iMac, 2.4gz, 2gb RAM
    I think the guys betting are right..

    Looks to me that you havent got the 'encoding' set right..

    Add <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in between your <head> and </head> tags..

    If that doesnt fix it.. I fold!

  13. #13

    the_macpanther's Avatar
    Member Since
    Jan 03, 2007
    Posts
    28
    Quote Originally Posted by Lewwy View Post
    I think the guys betting are right..

    Looks to me that you havent got the 'encoding' set right..

    Add <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in between your <head> and </head> tags..

    If that doesn't fix it.. I fold!
    I got it working in open office. It turns out it will help write it, because all syntax is color coded. So that fixed it, but to be safe I added Lewwy's advice.
    What does that code do anyway?

    In sum TextEdit was a pain. When I encoded it it always messed it up. but in open office all you have to do is switch over to html view. and you're fine. You don't have to worry about artifacts or anything like that.

  14. #14

    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    that top code tells the browser what type of document it is parsing

    The head tags enclose information like meta tags, CSS and javascript that are not directly seen. Once the browser has a doc type and head info. it will begin rendering the html in the body tags

    But you are still best using a visual html editor, and looking at the code it generates to understand hand coding

    as for a text editor that is more html friendly, I strongly recommend BBedit

  15. #15

    the_macpanther's Avatar
    Member Since
    Jan 03, 2007
    Posts
    28
    Thanks alot you guys.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. html problem - TextEdit
    By hello1000 in forum OS X - Apps and Games
    Replies: 1
    Last Post: 02-24-2013, 02:31 AM
  2. Replies: 0
    Last Post: 08-22-2011, 09:18 AM
  3. iweb HTML problem
    By Kjune in forum Web Design and Hosting
    Replies: 2
    Last Post: 11-14-2009, 02:08 PM
  4. Opening Local HTML files - render HTML (not display as text)
    By Gator626 in forum OS X - Operating System
    Replies: 6
    Last Post: 11-01-2009, 08:00 PM
  5. HTML problem
    By karthikguna21 in forum Web Design and Hosting
    Replies: 8
    Last Post: 01-04-2008, 01:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •